Skip to content

Instantly share code, notes, and snippets.

View disasterdrop's full-sized avatar
😅
I may be slow to respond.

Sebastian Hübner disasterdrop

😅
I may be slow to respond.
View GitHub Profile
@disasterdrop
disasterdrop / app.php
Created January 3, 2018 06:55
Silex Login Form
$app->register(new Silex\Provider\SecurityServiceProvider(), array(
'security.firewalls' => [
'general' => [
'pattern' => '^/',
'anonymous' => true,
'form' => [
'login_path' => '/login',
'check_path' => '/account/login_check',
'always_use_default_target_path' => true,
'default_target_path' => '/account/home'
@disasterdrop
disasterdrop / CollectionAdapter.php
Last active December 5, 2016 16:15
Propel Adapters for Apigility Collections
<?php
namespace Musterhaus\Propel\Paginator\Adapter;
use Zend\Paginator\Adapter\AdapterInterface;
use PropelCollection;
/**
* Class CollectionAdapter
*