Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
40 | 1 | protected function configure() |
|
41 | { |
||
42 | 1 | $this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); |
|
43 | 1 | $this->bind()->annotatedWith(SessionStorage::class)->toInstance($this->pdo); |
|
44 | 1 | $this->bind(\SessionHandlerInterface::class)->toConstructor(PdoSessionHandler::class, 'pdoOrDsn=' . SessionStorage::class); |
|
45 | |||
46 | 1 | $this->bind()->annotatedWith(SessionOptions::class)->toInstance($this->options); |
|
47 | |||
48 | 1 | $this->bind(SessionInterface::class)->toProvider(SessionProvider::class)->in(Scope::SINGLETON); |
|
49 | 1 | } |
|
50 | } |
||
51 |