/** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return mixed */ public function createService(ServiceLocatorInterface $serviceLocator) { $realLocator = $serviceLocator->getServceLocator(); $postService = $realLocator->get('Blog\\Service\\PostServiceInterface'); return new DeleteController($postService); }