protected function factory($class, $path, $arguments = null)
    {
        // get required file
        include_once $path.'Service'.DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';

        // create and return a fresh instance
        if ($arguments) {
            return self::instantiate($class, $arguments);
        } else {
            return new $class();
        }
    }
protected function factory($class, $path, $arguments = null)
    {
        // get required file
        include_once $path.'Service'.DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';

        // create and return a fresh instance
        if ($arguments) {
            return self::instantiate($class, $arguments);
        } else {
            return new $class();
        }
    }
protected function factory ( $ class , $ path , $ arguments = null ) { // get required file include_once $ path . 'Service' . DIRECTORY_SEPARATOR . str_replace ( '_' , DIRECTORY_SEPARATOR , $ class ) . '.php' ; // create and return a fresh instance if ( $ arguments ) { return self :: instantiate ( $ class , $ arguments ) ; } else { return new $ class ( ) ; } }
This method is intend to act as factory for creating an instance of a configuration container.

@param string $class     The className of container
@param string $path      The base path to Framework
@param mixed  $arguments Arguments to pass to instance

@author Benjamin Carl <opensource@clickalicious.de>
@return object The fresh created instance
@access protected
This method is intend to act as factory for creating an instance of a configuration container .