for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OpenTribes\Core\Silex\Provider;
use OpenTribes\Core\Silex\Service;
use Silex\Application;
use Silex\ServiceProviderInterface;
class ServiceProvider implements ServiceProviderInterface{
/**
* Registers services on the given app.
*
* This method should only be used to configure services and parameters.
* It should not get services.
*/
public function register(Application $app)
{
$app[Service::PASSWORD_HASH] = $app->share(function () use ($app) {
return new Service\DefaultPasswordHashService();
});
}
* Bootstraps the application.
* This method is called after all services are registered
* and should be used for "dynamic" configuration (whenever
* a service must be requested).
public function boot(Application $app)