public function get($class)
    {
        $class = ltrim($class, '\\');

        if (!isset($this->sharedInstances[$class])) {
            $this->sharedInstances[$class] = $this->create($class);
        }
        return $this->sharedInstances[$class];
    }
public function get($class)
    {
        $class = ltrim($class, '\\');

        if (!isset($this->sharedInstances[$class])) {
            $this->sharedInstances[$class] = $this->create($class);
        }
        return $this->sharedInstances[$class];
    }
public function get ( $ class ) { $ class = ltrim ( $ class , '\\' ) ; if ( ! isset ( $ this -> sharedInstances [ $ class ] ) ) { $ this -> sharedInstances [ $ class ] = $ this -> create ( $ class ) ; } return $ this -> sharedInstances [ $ class ] ; }
Get object from shared instances by class name.

@param string $class
@return mixed
Get object from shared instances by class name .