bytic /
MediaLibrary
| 1 | <?php |
||
| 2 | |||
| 3 | namespace ByTIC\MediaLibrary; |
||
| 4 | |||
| 5 | use ByTIC\MediaLibrary\Loaders\Filesystem; |
||
| 6 | use ByTIC\MediaLibrary\Loaders\LoaderInterface; |
||
| 7 | use Nip\Container\ServiceProviders\Providers\AbstractSignatureServiceProvider; |
||
| 8 | use Nip\Container\ServiceProviders\Providers\BootableServiceProviderInterface; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Class MediaLibraryServiceProvider. |
||
| 12 | */ |
||
| 13 | class MediaLibraryServiceProvider extends AbstractSignatureServiceProvider implements BootableServiceProviderInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * {@inheritdoc} |
||
| 17 | */ |
||
| 18 | public function register() |
||
| 19 | { |
||
| 20 | $this->getContainer()->set(LoaderInterface::class, Filesystem::class); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function provides() |
||
| 27 | { |
||
| 28 | return [LoaderInterface::class]; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function boot() |
||
| 32 | { |
||
| 33 | $this->getContainer()->get('migrations.migrator')->path(dirname(__DIR__) . '/migrations/'); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |