| Total Complexity | 7 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 86.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | abstract class Resolver |
||
| 19 | { |
||
| 20 | private $app; |
||
| 21 | |||
| 22 | 71 | public function __construct(Container $app) |
|
| 23 | { |
||
| 24 | 71 | $this->app = $app; |
|
| 25 | 71 | } |
|
| 26 | |||
| 27 | abstract protected function authorizer(): string; |
||
| 28 | |||
| 29 | 71 | public function configure() |
|
| 30 | { |
||
| 31 | 71 | $this->app->bind(AuthorizerContract::class, $this->authorizer()); |
|
| 32 | 71 | $this->configureEvents(); |
|
| 33 | 71 | } |
|
| 34 | |||
| 35 | 71 | protected function listens(): array |
|
| 38 | } |
||
| 39 | |||
| 40 | protected function container(): Container |
||
| 41 | { |
||
| 42 | return $this->app; |
||
| 43 | } |
||
| 44 | |||
| 45 | 71 | private function configureEvents(): void |
|
| 50 | } |
||
| 51 | } |
||
| 52 | 71 | } |
|
| 53 | } |
||
| 54 |