sergiors / sensio-framework-extra-service-provider
SensioFrameworkExtraBundle for Silex
Installs: 23 636
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 3
Open Issues: 1
Requires
- php: ^7.0
- sensio/framework-extra-bundle: ^3.0
- sergiors/annotations-service-provider: dev-master
- sergiors/routing-service-provider: dev-master
- sergiors/templating-service-provider: ^2
- silex/silex: ^2
- symfony/expression-language: ^2.8|^3.0
Requires (Dev)
- pdepend/pdepend: ~2.0
- phing/phing: ~2.10
- phploc/phploc: ~2.1
- phpmd/phpmd: ~2.2
- phpunit/phpunit: ~4.8
- sebastian/phpcpd: ~2.0
- sergiors/psr-http-message-bridge-service-provider: dev-master
- squizlabs/php_codesniffer: ~2.1
- symfony/security: ^2.8|^3.0
- zendframework/zend-diactoros: ^1.3
This package is not auto-updated.
Last update: 2024-12-21 18:50:27 UTC
README
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