freezy-bee / prepend-route
Nette Framework extension with prepend route support
Installs: 5 213
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.3
- nette/application: ~3.0
- nette/di: ~3.0
Requires (Dev)
- nette/bootstrap: ~3.0
- nette/tester: ~2.0
- phpstan/phpstan: ^0.12
- squizlabs/php_codesniffer: ^3.0
- tracy/tracy: ^2.4
This package is auto-updated.
Last update: 2024-11-29 05:26:37 UTC
README
Installation
The best way to install FreezyBee/PrependRoute is using Composer:
composer require freezy-bee/prepend-route
With Nette 2.4
and newer, you can enable the extension using your neon config.
extensions: prependRoute: FreezyBee\PrependRoute\DI\PrependRouteExtension
Documentation
Usage
Your extension MUST implements interface FreezyBee\PrependRoute\DI\IPrependRouteProvider
.
class TestExtension extends CompilerExtension implements IPrependRouteProvider { public function loadConfiguration(): void { // register route service (testRoute) ... } /** * Return array of services - service MUST implements IRoute * @return string[] */ public function getPrependRoutes(): array { return [$this->prefix('testRoute')]; } }