- Requires PHP
8.4 - Requires
innmind/foundation:~2.1
- Requires
innmind/foundation:~1.10
Innmind\Framework\Http\RouteInnmind\Framework\Http\Route\ReferenceInnmind\Framework\Application::mapRoute()Innmind\Framework\Application::routes(class-string<Innmind\Framework\Http\Route\Reference>)Innmind\Framework\Application::recoverRouteError()Innmind\Framework\Cli\Command
- Requires
innmind/foundation:~1.9 - Requires
innmind/di:~3.0 Innmind\Framework\Application::route()callable must now return aInnmind\Router\ComponentInnmind\Framework\Application::route()callable first parameter now is aInnmint\Router\PipeInnmind\Framework\Application::route()first parameter must now be expressed via a component inside the callableInnminf\Framework\Application::notFoundRequestHandler()callable must now return anInnmind\Immutable\Attempt<Response>Innminf\Framework\Application::notFoundRequestHandler()has been renamed::routeNotFound()Innmind\Framework\Application::mapCommand()callable now longer has access toOperatingSystemandEnvironment(use services instead)Innmind\Framework\Application::run()always return anInnmind\Immutable\Attempt
- The ability to use
strings to reference services Innmind\Framework\Http\ServiceInnmind\Framework\Http\ToInnmind\Framework\Http\RoutesInnmind\Framework\Application::appendRoutes()Innmind\Framework\Application::mapRequestHandler()Innmind\Framework\Http\RequestHandler
- PHP
8.4deprecations
- Use
staticclosures as much as possible to reduce the probability of creating circular references by capturing$thisas it can lead to memory root buffer exhaustion.
Innmind\DI\Servicecan now be used everywhere a service can be referenced
Innmind\Framework\Http\Tono longer raise Psalm errors when used as argument toApplication::route()
- Support for using enums as a service name
- Support for
innmind/operating-system:~5.0 - Support for
innmind/async-http-server:~3.0
Innmind\Framework\Http\Routes::append()Innmind\Framework\Http\Routes::add()now also acceptsInnmind\Router\Under
- Requires
innmind/operating-system:~4.1 - Requires
innmind/immutable:~5.2 - Requires
innmind/filesystem:~7.0 - Requires
innmind/http-server:~4.0 - Requires
innmind/router:~4.1 - Requires
innmind/innmind/async-http-server:~2.0
- All routes are no longer kept in memory when no longer used
- Support for
innmind/immutable:~5.0
- Support for PHP
8.1
Innmind\Framework\Application::route()Innmind\Framework\Http\To
Innmind\Framework\Environment::all()
Innmind\Framework\Main\Async\Httpas an (optional) experimental feature
Innmind\Framework\ApplicationInnmind\Framework\Main\CliInnmind\Framework\Main\HttpInnmind\Framework\MiddlewareInnmind\Framework\Middleware\OptionalInnmind\Framework\Middleware\LoadDotEnvInnmind\Framework\EnvironmentInnmind\Framework\Http\RequestHandler