mirror of
https://github.com/flarum/core.git
synced 2025-10-27 05:31:29 +01:00
Rename app to container (#2609)
* Rename `app` helper to `resolve`, deprecate old version * Rename $this->app to $this->container in service providers We no longer couple Flarum\Foundation\Application to the Laravel container; instead, we use the container separately. Changing our naming to reflect that will make things clearer.
This commit is contained in:
committed by
GitHub
parent
15cbe4daaa
commit
c81f629b0b
@@ -20,14 +20,14 @@ class SessionServiceProvider extends AbstractServiceProvider
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->singleton('session.handler', function ($app) {
|
||||
$this->container->singleton('session.handler', function ($container) {
|
||||
return new FileSessionHandler(
|
||||
$app['files'],
|
||||
$app['config']['session.files'],
|
||||
$app['config']['session.lifetime']
|
||||
$container['files'],
|
||||
$container['config']['session.files'],
|
||||
$container['config']['session.lifetime']
|
||||
);
|
||||
});
|
||||
|
||||
$this->app->alias('session.handler', SessionHandlerInterface::class);
|
||||
$this->container->alias('session.handler', SessionHandlerInterface::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user