thecodingmachine / splash-service-provider
跨框架的splash模块
dev-master / 10.0.x-dev
2020-09-03 16:36 UTC
Requires
Requires (Dev)
- mnapoli/simplex: ^0.4.1
- phpstan/phpstan: ^0.10.1
- phpunit/phpunit: ^6.4.3
- satooshi/php-coveralls: ^1.0.1
- squizlabs/php_codesniffer: ^3.2
- thecodingmachine/phpstan-strict-rules: ^0.10.1
This package is auto-updated.
Last update: 2024-08-29 05:07:42 UTC
README
通用Splash路由器模块
此软件包将codingmachine/splash-router集成到任何兼容container-interop的框架/容器中。
安装
composer require thecodingmachine/splash-service-provider
安装完成后,您需要将TheCodingMachine\Splash\DI\SplashServiceProvider
注册到您的容器中。
如果您的容器支持thecodingmachine/discovery集成,则无需执行任何操作。否则,请参阅您框架或容器的文档了解如何注册服务提供者。
简介
Splash提供了一个服务提供者,可以轻松集成到任何兼容container-interop/service-provider的框架/容器。
如果您需要一个完整的工作示例,请查看Splash独立安装指南。
此服务提供者将提供默认的Splash路由器。
它需要一个Doctrine的注解读取器的实例可用。
注意:您可以使用以下软件包获取提供Doctrine注解读取器的服务提供者
composer require thecodingmachine/doctrine-annotations-universal-module
如果可用,它将使用PSR-6缓存。注意:您可以使用以下软件包获取提供有效PSR-6缓存的软件包提供者
composer require thecodingmachine/stash-universal-module
这将安装Stash及其相关服务提供者。
预期值/服务
此服务提供者期望以下配置/服务可用
提供的服务
此服务提供者提供以下服务
扩展服务
此服务提供者将SplashDefaultRouter::class
注册到MiddlewareListServiceProvider::MIDDLEWARES_QUEUE
中。