doyolabs /
mezzio-testing
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * This file is part of the doyo/mezzio-testing project. |
||
| 5 | * |
||
| 6 | * (c) Anthonius Munthi <https://itstoni.com> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | declare(strict_types=1); |
||
| 13 | |||
| 14 | namespace Doyo\Mezzio\Testing\Modules; |
||
| 15 | |||
| 16 | use Laminas\ServiceManager\ServiceManager; |
||
| 17 | |||
| 18 | trait WithLaminasServiceManager |
||
| 19 | { |
||
| 20 | protected static function setupServiceManager(): void |
||
| 21 | { |
||
| 22 | $config = static::$config; |
||
| 23 | $deps = $config['dependencies']; |
||
| 24 | $deps['services']['config'] = $config; |
||
| 25 | |||
| 26 | static::$container = new ServiceManager($deps); |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 27 | } |
||
| 28 | } |
||
| 29 |