Skip to content
Snippets Groups Projects
Commit 924b334a authored by Arrilot's avatar Arrilot
Browse files

add alias for EnsiFilesystemManager

parent b69f10e3
No related branches found
Tags 0.1.0
No related merge requests found
......@@ -17,8 +17,9 @@ class EnsiFilesystemServiceProvider extends ServiceProvider
$this->app->singleton('ensi.filesystem', function (Application $app) {
return new EnsiFilesystemManager($app);
});
$this->app->alias('ensi.filesystem', EnsiFilesystemManager::class);
$this->mergeConfigFrom(__DIR__ . '/../config/ensi-filesystem.php', 'ensi-filesystem');
$this->mergeConfigFrom(__DIR__.'/../config/ensi-filesystem.php', 'ensi-filesystem');
}
/**
......@@ -30,7 +31,7 @@ class EnsiFilesystemServiceProvider extends ServiceProvider
{
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../config/ensi-filesystem.php' => config_path('ensi-filesystem.php'),
__DIR__.'/../config/ensi-filesystem.php' => config_path('ensi-filesystem.php'),
], 'config');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment