1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

Remove unnecessary provider

This commit is contained in:
SychO9
2021-09-01 20:01:36 +01:00
parent 1d48c9878b
commit ae5fb2f253

View File

@@ -1,24 +0,0 @@
<?php
namespace SychO\PackageManager;
use Flarum\Foundation\Paths;
use Illuminate\Contracts\Container\Container;
use SychO\PackageManager\Composer\ComposerEnvironment;
use Flarum\Foundation\AbstractServiceProvider;
use Illuminate\Filesystem\Filesystem;
class ComposerEnvironmentProvider extends AbstractServiceProvider
{
public function register()
{
$this->container->singleton(ComposerEnvironment::class, function(Container $container) {
return new ComposerEnvironment(
$container->make(Paths::class)->base,
$container->make(Paths::class)->storage.'/composer-home',
$container->make(Filesystem::class),
$container->make(Paths::class)
);
});
}
}