Download the PHP package saxulum/saxulum-route-controller-provider without Composer
On this page you can find all versions of the php package saxulum/saxulum-route-controller-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download saxulum/saxulum-route-controller-provider
More information about saxulum/saxulum-route-controller-provider
Files in saxulum/saxulum-route-controller-provider
Download saxulum/saxulum-route-controller-provider
More information about saxulum/saxulum-route-controller-provider
Files in saxulum/saxulum-route-controller-provider
Vendor saxulum
Package saxulum-route-controller-provider
Short Description Saxulum Route/Controller Provider
License MIT
Package saxulum-route-controller-provider
Short Description Saxulum Route/Controller Provider
License MIT
Please rate this library. Is it a good library?
Informations about the package saxulum-route-controller-provider
saxulum-route-controller-provider
works with plain silex-php
Features
- Register Controller as Service using Annotations
Requirements
- php >=5.3
- Doctrine Annotations >=1.1
- PHP Parser >=0.9,<1.0
- Saxulum ClassFinder >=1.0
- Symfony Finder Component >=2.3
- Silex >= 1.1
Installation
Through Composer as saxulum/saxulum-route-controller-provider.
AnnotationRegistry
Add this line after you added the autoload.php
from composer
With defined cache dir
debug == true
: the cache file will be build at each loaddebug == false
: the cache file will be build if not exists, delete it if its out of sync
Without defined cache dir
probably slower, cause temp dir cleanups
debug == true
: the cache file will be build at each loaddebug == false
: the cache file will be build if not exists, delete it if its out of sync
Add the controller paths
Usage
Route Annotation
Controller
Method
__self
get replaced by the controller class.__self:beforeFirst
calls the methodbeforeFirst
on the controller instance__self::beforeSecond
calls the static methodbeforeSecond
on the controller
Dependency Injection Annotation
If there is no DI annotation, the controller will be registred without any dependencies as long there is at least one method route annotation.
Container Injection
Service Injection
All versions of saxulum-route-controller-provider with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.9,<8.0
doctrine/annotations Version ~1.1
nikic/php-parser Version ~1.2,>=1.2.1
saxulum/saxulum-annotation-manager Version ~1.2
silex/silex Version ~1.1
symfony/finder Version ~2.3|~3.0
doctrine/annotations Version ~1.1
nikic/php-parser Version ~1.2,>=1.2.1
saxulum/saxulum-annotation-manager Version ~1.2
silex/silex Version ~1.1
symfony/finder Version ~2.3|~3.0
The package saxulum/saxulum-route-controller-provider contains the following files
Loading the files please wait ....