-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathServiceProvider.php
More file actions
25 lines (20 loc) · 839 Bytes
/
ServiceProvider.php
File metadata and controls
25 lines (20 loc) · 839 Bytes
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
<?php
declare(strict_types=1);
namespace Winter\Redirect;
use Winter\Storm\Support\ServiceProvider as ServiceProviderBase;
use Winter\Redirect\Classes\CacheManager;
use Winter\Redirect\Classes\Contracts;
use Winter\Redirect\Classes\PublishManager;
use Winter\Redirect\Classes\RedirectManager;
final class ServiceProvider extends ServiceProviderBase
{
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);
}
}