| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function __construct(Container $currentApp, Container $snapshotApp) |
||
| 15 | { |
||
| 16 | parent::__construct($currentApp, $snapshotApp); |
||
| 17 | |||
| 18 | $ref = new \ReflectionObject($this->currentApp['events']); |
||
| 19 | $this->listeners = $ref->getProperty('listeners'); |
||
| 20 | $this->listeners->setAccessible(true); |
||
| 21 | |||
| 22 | $this->wildcards = $ref->getProperty('wildcards'); |
||
| 23 | $this->wildcards->setAccessible(true); |
||
| 24 | |||
| 25 | if ($ref->hasProperty('wildcardsCache')) { // Laravel 5.6+ |
||
| 26 | $this->wildcardsCache = $ref->getProperty('wildcardsCache'); |
||
| 27 | $this->wildcardsCache->setAccessible(true); |
||
| 28 | } |
||
| 39 | } |