bytic / dispatcher
dispatcher bytic framework
Requires
- php: ^8.0
- bytic/collections: ^0.9|^1.0|^2.0
- bytic/container: ^0.9|^1.0|^2.0
- bytic/http: ^0.9|^1.0|^2.0
- bytic/inflector: ^0.9|^1.0|^2.0
- bytic/pipeline: ^1.0|^2.0
Requires (Dev)
- bytic/phpqatools: ^1.0
Suggests
- bytic/controllers: Required for ByTIC controller integration (^0.9, ^1.0 or ^2.0); current releases restrict Symfony to 7 or earlier.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-25 12:49:16 UTC
README
ByTIC Dispatcher component
Compatibility
The existing ByTIC dispatcher API remains available. The dispatcher accepts both ByTIC HTTP requests and PSR server requests; ByTIC HTTP 2.x uses Symfony-backed requests rather than implementing the PSR request interface directly. For request-based controller resolution, the request must expose ByTIC's module, controller and action accessors; a generic PSR request alone is not sufficient.
Preconstructed controllers do not need to extend a ByTIC controller or implement
setRequest(). For example:
$result = $dispatcher->call( ['instance' => $controller, 'action' => 'show'], ['id' => 42] );
This is an incremental integration point, not Symfony's controller resolver:
the caller is responsible for constructing the controller and supplying its
arguments. Controllers with setRequest() continue to receive the request and
must accept the request type being passed. For legacy ByTIC controllers, a
Symfony-backed ByTIC request is supplied through ByTIC's PSR request bridge.
Symfony 8 requires PHP 8.4 or newer and compatible versions of the installed
ByTIC packages, including bytic/http 2.x. Current bytic/controllers releases
restrict Symfony packages to version 7 or earlier; applications using that
optional package must wait for a compatible release before upgrading to Symfony 8.
Install bytic/controllers separately to run the controller integration tests
against the real ByTIC controller.