Frootbox MVC Framework

Maintainers

Package info

github.com/Frootbox/MVC

Documentation

pkg:composer/frootbox/mvc

Transparency log

Statistics

Installs: 3 215

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.13.5 2026-07-25 08:11 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.