Home

Awesome

Sensio Framework Extra Service Provider

Build Status

To see the complete documentation, check out SensioFrameworkExtraBundle

Install

composer require sergiors/sensio-framework-extra-service-provider "dev-master"
use Sergiors\Silex\Provider\RoutingServiceProvider;
use Sergiors\Silex\Provider\DoctrineCacheServiceProvider;
use Sergiors\Silex\Provider\AnnotationsServiceProvider;
use Sergiors\Silex\Provider\TemplatingServiceProvider;
use Sergiors\Silex\Provider\SensioFrameworkExtraServiceProvider;

$app->register(new RoutingServiceProvider());
$app->register(new DoctrineCacheServiceProvider());
$app->register(new TemplatingServiceProvider());
$app->register(new AnnotationsServiceProvider());
$app->register(new SensioFrameworkExtraServiceProvider());

To use annotation, you should update your autoload.php by adding the following line:

Doctrine\Common\Annotations\AnnotationRegistry::registerLoader([$loader, 'loadClass']);

License

MIT