Файл: concrete5.7.5.6/concrete/src/Session/SessionServiceProvider.php
Строк: 51
<?php
namespace ConcreteCoreSession;
use ConcreteCoreFoundationServiceProvider as ServiceProvider;
class SessionServiceProvider extends ServiceProvider
{
public function register()
{
// Supply the deprecated static session accessor with a real application object
Session::setApplicationObject($this->app);
$this->app->bind('ConcreteCoreSessionSessionValidatorInterface', 'ConcreteCoreSessionSessionValidator');
$this->app->bind('ConcreteCoreSessionSessionFactoryInterface', 'ConcreteCoreSessionSessionFactory');
$this->app->singleton('session', function ($app) {
return $app->make('ConcreteCoreSessionSessionFactoryInterface')->createSession();
});
$this->app->bind('SymfonyComponentHttpFoundationSessionSession', 'session');
}
}