src/Service/Factory/Factory.php
public function createClass($classname)
    {
        // Check for possible overwrite.
        if (isset($this->rewrite[$classname]) === true) {
            $classname = $this->rewrite[$classname];
        }

        return new $classname($this);
    }
public function createClass($classname)
    {
        // Check for possible overwrite.
        if (isset($this->rewrite[$classname]) === true) {
            $classname = $this->rewrite[$classname];
        }

        return new $classname($this);
    }
public function createClass ( $ classname ) { // Check for possible overwrite. if ( isset ( $ this -> rewrite [ $ classname ] ) === true ) { $ classname = $ this -> rewrite [ $ classname ] ; } return new $ classname ( $ this ) ; }
Create objects and returns them. Singletons are handled by the pool.

@param string $classname

@return mixed
The requested object.
Create objects and returns them . Singletons are handled by the pool .