1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Implemented Update autoloader to support namespaces

Discussion in 'Closed Suggestions' started by Robbo, Mar 18, 2013.

  1. Robbo

    Robbo Well-Known Member

    All that needs to happen is this in the autoloader...

    	public function autoloaderClassToFile($class)
    		if (preg_match('#[^a-zA-Z0-9_\\\]#', $class))
    		{echo $class;
    			return false;
    		return $this->_rootDir . '/' . str_replace(array('\\', '_'), '/', $class) . '.php';
    I am overwriting this currently but would rather not be...
  2. Mike

    Mike XenForo Developer Staff Member

    Done for 1.1.4.
    TBolley likes this.

Share This Page