spomky-labs / oauth2-server-client-manager-supervisor-bundle
v5.0.1
2015-06-15 20:36 UTC
Requires
Requires (Dev)
- behat/behat: 3.*
- behat/symfony2-extension: *
- symfony/class-loader: ~2.3
- symfony/event-dispatcher: ~2.3
- symfony/yaml: ~2.3
Suggests
- spomky-labs/oauth2-server-password-client-bundle: Confidential Client secured by password
- spomky-labs/oauth2-server-public-client-bundle: Public Client
- symfony/event-dispatcher: Receive events from this bundle
This package is not auto-updated.
Last update: 2015-08-17 10:39:31 UTC
README
此包提供了一个简单的客户端管理监督器。它将以简便的方式加载所有客户端管理器。
它依赖于 OAuth2 接口项目。
发布流程
先决条件
此包需要至少 PHP 5.4
和 Symfony v2.3
。
它已经通过以下版本的 PHP 成功测试: PHP 5.4
到 PHP 5.6
,PHP 7
和 HHVM
。
安装此库的首选方法是依赖 Composer
在内核中启用包
composer require "spomky-labs/oauth2-server-client-manager-supervisor-bundle" "~5.0.0"
启用包
在内核中启用包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( ... new SpomkyLabs\OAuth2ServerClientManagerSupervisorBundle\SpomkyLabsOAuth2ServerClientManagerSupervisorBundle(), ); }
配置
默认值已定义,因此无需进行配置。
完整的配置如下
sl_oauth2_client_manager_supervisor: supervisor: sl_oauth2_client_manager_supervisor.service.default
如何使用
此包仅提供服务 sl_oauth2_client_manager_supervisor.supervisor
,您需要将其注入需要客户端管理监督器的服务。
此客户端管理器能够加载所有带有标签 sl_oauth2_client_manager_supervisor.client_manager
的客户端管理器服务。
贡献
欢迎提出新功能请求、修复错误以及所有其他想法,以使此包更有用。请遵循以下最佳实践 。
许可证
此包在 MIT 许可证 下发布。