public function getComponentRouter($component)
    {
        if (! isset($this->_routers[$component])) {
            $identifier = clone $this->getIdentifier();
            $identifier->path = array();
            $identifier->package = str_replace('com_', '', $component);
            $identifier->name = 'router';

            $this->_routers[$component] = $this->getService($identifier);
        }

        return $this->_routers[$component];
    }
public function getComponentRouter($component)
    {
        if (! isset($this->_routers[$component])) {
            $identifier = clone $this->getIdentifier();
            $identifier->path = array();
            $identifier->package = str_replace('com_', '', $component);
            $identifier->name = 'router';

            $this->_routers[$component] = $this->getService($identifier);
        }

        return $this->_routers[$component];
    }
public function getComponentRouter ( $ component ) { if ( ! isset ( $ this -> _routers [ $ component ] ) ) { $ identifier = clone $ this -> getIdentifier ( ) ; $ identifier -> path = array ( ) ; $ identifier -> package = str_replace ( 'com_' , '' , $ component ) ; $ identifier -> name = 'router' ; $ this -> _routers [ $ component ] = $ this -> getService ( $ identifier ) ; } return $ this -> _routers [ $ component ] ; }
Returna component router.

@param string $component Component name

@return ComBaseRouter
Returna component router .