sergiors/sensio-framework-extra-service-provider

SensioFrameworkExtraBundle for Silex

dev-master 2017-09-15 17:11 UTC

This package is not auto-updated.

Last update: 2024-11-09 18:16:52 UTC


README

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