| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class InstallSubscriber implements EventSubscriberInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var LazyPDO $lazyPdo |
||
| 14 | */ |
||
| 15 | private $lazyPdo; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param LazyPDO $lazyPdo |
||
| 19 | */ |
||
| 20 | public function __construct(LazyPDO $lazyPdo) |
||
| 21 | { |
||
| 22 | $this->lazyPdo = $lazyPdo; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | public static function getSubscribedEvents(): array |
||
| 29 | { |
||
| 30 | return [ |
||
| 31 | RunInstallCommandEvent::class => 'onInstall' |
||
| 32 | ]; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @throws \PDOException |
||
| 37 | */ |
||
| 38 | public function onInstall() |
||
| 42 | } |
||
| 43 | } |