Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
41 | { |
||
42 | $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
||
43 | $resultSetPrototype = new ResultSet(); |
||
44 | $resultSetPrototype->setArrayObjectPrototype(new Settings()); |
||
45 | $tableGateway = new TableGateway('settings', $dbAdapter, null, $resultSetPrototype); |
||
46 | $table = new SettingsTable($tableGateway); |
||
47 | return $table; |
||
48 | } |
||
49 | } |