'onInitMatrixProductService', 'MatrixProductGateway' => 'onInitMatrixProductGateway', ]; } /** * @param ContainerInterface $container * * @return MatrixProductService */ public static function onInitMatrixProductService(ContainerInterface $container) : MatrixProductService { return new MatrixProductService( $container->get('Database'), $container->get('MatrixProductGateway'), $container->get('ArticleGateway') ); } /** * @param ContainerInterface $container * * @return MatrixProductGateway */ public static function onInitMatrixProductGateway(ContainerInterface $container) : MatrixProductGateway { return new MatrixProductGateway($container->get('Database')); } }