Allow the use of Propel before Silex boots #9

Merged
merged 2 commits into from Feb 11, 2013

Projects

None yet

2 participants

@oziks

As it is, it isn't possible to use Propel before Silex boots, which means it's not available during the bootstrap process aswell as when executing asserts (which was our problem originally).

<?php

$app->get('/{slug}', array($this, 'function'))
    ->assert('slug', SlugPeer::assertUrl()) // assertUrl returns the list of authorized slugs separated by |
;
@willdurand willdurand merged commit b670cc0 into propelorm:master Feb 11, 2013

1 check passed

Details default The Travis build passed
@willdurand
Propel member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment