Вход Регистрация
Файл: Routing-1.0.0/PositiveCode/Routing/RoutingService.php
Строк: 36
<?php
/**
 * PositiveCode Tools
 *
 * @author KpuTuK <bykputuk@ya.ru>
 * @copyright Copyright (c) 2016, PositiveCode Team
 * @license MIT License
 */

namespace PositiveCodeRouting;

use 
PositiveCodeServiceLocatorServiceProviderInterface;
use 
PositiveCodeServiceLocatorServiceLocatorInterface;

/**
 * Сервис роутинга
 * @author KpuTuK <bykputuk@ya.ru>
 * @version 1.0.0
 * @package PositiveCode Tools
 */
class RoutingService extends Routing implements ServiceProviderInterface
{
    
/**
     * Обьект контейнера
     * @var PositiveCodeServiceLocatorServiceLocatorInterface
     */
    
protected $container;
    
/**
     * Возвращает имя сервиса
     * @return string
     */
    
public function getServiceName()
    {
        return 
'routing';
    }
    
/**
     * Регистрирует обьект контейнера в сервисе
     * @param PositiveCodeServiceLocatorServiceLocatorInterface $container
     */
    
public function registerContainer(ServiceLocatorInterface $container)
    {
        
$this->container $container;
    }
}
Онлайн: 3
Реклама