| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __construct(Container $currentApp, Container $snapshotApp) |
||
| 14 | { |
||
| 15 | parent::__construct($currentApp, $snapshotApp); |
||
| 16 | |||
| 17 | if (!isset($this->currentApp['auth'])) { |
||
| 18 | return; |
||
| 19 | } |
||
| 20 | $ref = new \ReflectionObject($this->currentApp['auth']); |
||
| 21 | if ($ref->hasProperty('guards')) { |
||
| 22 | $this->guards = $ref->getProperty('guards'); |
||
| 23 | } else { |
||
| 24 | $this->guards = $ref->getProperty('drivers'); |
||
| 25 | } |
||
| 26 | $this->guards->setAccessible(true); |
||
| 27 | } |
||
| 38 | } |