forked from vdlp/oc-redirect-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServiceProvider.php
29 lines (24 loc) · 885 Bytes
/
ServiceProvider.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
declare(strict_types=1);
namespace Vdlp\Redirect;
use October\Rain\Support\ServiceProvider as ServiceProviderBase;
use TypeError;
use Vdlp\Redirect\Classes\CacheManager;
use Vdlp\Redirect\Classes\Contracts;
use Vdlp\Redirect\Classes\PublishManager;
use Vdlp\Redirect\Classes\RedirectManager;
final class ServiceProvider extends ServiceProviderBase
{
/**
* @throws TypeError
*/
public function register(): void
{
$this->app->bind(Contracts\RedirectManagerInterface::class, RedirectManager::class);
$this->app->bind(Contracts\PublishManagerInterface::class, PublishManager::class);
$this->app->bind(Contracts\CacheManagerInterface::class, CacheManager::class);
$this->app->singleton(RedirectManager::class);
$this->app->singleton(PublishManager::class);
$this->app->singleton(CacheManager::class);
}
}