kurl / silex-security-profiler-provider
此包已被废弃且不再维护。没有推荐替代包。
另一个URL缩短器
0.0.1
2015-05-26 12:48 UTC
Requires
- php: >=5.3.3
- silex/silex: ~1.2
- silex/web-profiler: ~1.0
- symfony/dependency-injection: ~2.3
- symfony/security-bundle: ~2.3
Requires (Dev)
- phpunit/phpunit: ~4.4
- symfony/browser-kit: ~2.3
- symfony/css-selector: ~2.3
This package is auto-updated.
Last update: 2020-03-23 10:23:58 UTC
README
由于某种原因,安全分析组件缺失在标准的Silex网络分析器中。此提供者使其可用。
安装
添加composer require
{ "require": { "kurl/silex-security-profiler-provider": "*" } }
然后运行
$ composer update
使用方法
此提供者继承了与标准网络分析器相同的配置。需要很多默认提供者才能启动提供者...
<?php $app = new Silex\Application(); $app->register(new Silex\Provider\TwigServiceProvider()); $app->register(new Silex\Provider\UrlGeneratorServiceProvider()); $app->register(new Silex\Provider\SecurityServiceProvider()); $app->register( new Silex\Provider\ServiceControllerServiceProvider(), array( // Inject your security configuration here 'security.firewalls' => array() ) ); $app->register( new Kurl\Silex\Provider\WebProfilerServiceProvider(), array( 'profiler.cache_dir' => '/path/to/cache/' ) );
注意
由于某种原因,覆盖率测试运行时间过长。直接测试运行良好,希望它不会造成问题。