mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Remove unnecessary provider
This commit is contained in:
parent
1d48c9878b
commit
ae5fb2f253
|
@ -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)
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user