frootbox / mvc
Frootbox MVC Framework
0.13.7
2026-08-20 12:51 UTC
Requires
- php: >=8.3
- doctrine/annotations: ^1
- frootbox/config: ^1
- frootbox/db: ^1
- frootbox/exceptions: ^0
- frootbox/http: ^0
- php-di/php-di: ^6
- twig/twig: ^3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 0.13.7
- 0.13.6
- 0.13.5
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13
- 0.12.1
- 0.12
- 0.11.2
- 0.11.1
- 0.11
- 0.10
- 0.9.2
- 0.9.1
- 0.9
- 0.8
- 0.7.9
- 0.7.8
- 0.7.7
- 0.7.6
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5
- 0.4
- 0.3.1
- 0.3
- 0.2
- 0.1.2
- 0.1.1
- 0.1
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.1
This package is auto-updated.
Last update: 2026-08-20 12:51:55 UTC
README
Dispatcher options
Dispatcher options are passed as the second constructor argument:
$dispatcher = new \Frootbox\MVC\Dispatcher( container: $container, options: [ 'namespace' => 'App', 'cachepath' => __DIR__ . '/../var/cache/', 'baseDir' => '/admin', 'loginController' => 'Authentication', 'loginAction' => 'login', ], );
| Option | Default | Description |
|---|---|---|
namespace |
null |
Root namespace containing the application's Controller namespace. |
cachepath |
null |
Base path for the generated controller cache. The path should include a trailing directory separator. |
baseDir |
null |
Base directory to remove from the incoming request path. |
loginController |
Session |
Controller used for unauthenticated requests to private actions. Nested controllers may be written with / or \ separators. |
loginAction |
login |
Action used for unauthenticated requests to private actions. |
If loginController or loginAction is omitted or empty, the dispatcher retains its existing Session/login behavior. Requests accepting application/json are not dispatched to this target and still result in an access-denied exception.