protected function initExtensionType()
    {
        // We have to get the class of our injector
        $class = '';
        if (!class_exists($class = $this->extensionType) &&
            !class_exists($class = strstr($this->extensionType, '(', true))) {
            throw new \Exception('Unknown injector class ' . $class);
        }

        // We also have to get the parameter
        $parameters = array();
        preg_match('`\((.+)\)`', $this->getExtensionType(), $parameters);

        // Clean them up and separate them
        $parameterString = str_replace(array(' ', '\''), array(''), $parameters[1]);
        $clearParameters = explode(',', $parameterString);

        // Instantiate the injector and  init it
        $this->injector = new $class($clearParameters[0], $clearParameters[1], $clearParameters[2]);
        $this->injector->init();
    }
protected function initExtensionType()
    {
        // We have to get the class of our injector
        $class = '';
        if (!class_exists($class = $this->extensionType) &&
            !class_exists($class = strstr($this->extensionType, '(', true))) {
            throw new \Exception('Unknown injector class ' . $class);
        }

        // We also have to get the parameter
        $parameters = array();
        preg_match('`\((.+)\)`', $this->getExtensionType(), $parameters);

        // Clean them up and separate them
        $parameterString = str_replace(array(' ', '\''), array(''), $parameters[1]);
        $clearParameters = explode(',', $parameterString);

        // Instantiate the injector and  init it
        $this->injector = new $class($clearParameters[0], $clearParameters[1], $clearParameters[2]);
        $this->injector->init();
    }
protected function initExtensionType ( ) { // We have to get the class of our injector $ class = '' ; if ( ! class_exists ( $ class = $ this -> extensionType ) && ! class_exists ( $ class = strstr ( $ this -> extensionType , '(' , true ) ) ) { throw new \ Exception ( 'Unknown injector class ' . $ class ) ; } // We also have to get the parameter $ parameters = array ( ) ; preg_match ( '`\((.+)\)`' , $ this -> getExtensionType ( ) , $ parameters ) ; // Clean them up and separate them $ parameterString = str_replace ( array ( ' ' , '\'' ) , array ( '' ) , $ parameters [ 1 ] ) ; $ clearParameters = explode ( ',' , $ parameterString ) ; // Instantiate the injector and  init it $ this -> injector = new $ class ( $ clearParameters [ 0 ] , $ clearParameters [ 1 ] , $ clearParameters [ 2 ] ) ; $ this -> injector -> init ( ) ; }
Will init the injector from the given extensionType

@return null
@throws \Exception
Will init the injector from the given extensionType