kurl / silex-security-profiler-provider
Another URL shortener
Installs: 189
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 1
Type:project
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
For some reason the security profiler component is absent from the standard Silex web profiler. This provider enables it.
Installation
Add the composer require:
{ "require": { "kurl/silex-security-profiler-provider": "*" } }
And then run:
$ composer update
Usage
This provider inherits the same configuration as the standard web profiler. Quite a few default providers are required to get the provider up and running...
<?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/' ) );
Notes
The coverage tests take forever to run for a reason which evades me. The straight up tests are fine so I hope it is not causing an issue.