protected function loadOriginalClassAndSetAliases($originalClassName)
    {
        if ($this->classOrInterfaceExists($originalClassName) || $this->loadClass($originalClassName)) {
            foreach ($this->aliasMap['classNameToAliasMapping'][$originalClassName] as $aliasClassName) {
                if (!$this->classOrInterfaceExists($aliasClassName)) {
                    class_alias($originalClassName, $aliasClassName);
                }
            }

            return true;
        }

        return null;
    }
protected function loadOriginalClassAndSetAliases($originalClassName)
    {
        if ($this->classOrInterfaceExists($originalClassName) || $this->loadClass($originalClassName)) {
            foreach ($this->aliasMap['classNameToAliasMapping'][$originalClassName] as $aliasClassName) {
                if (!$this->classOrInterfaceExists($aliasClassName)) {
                    class_alias($originalClassName, $aliasClassName);
                }
            }

            return true;
        }

        return null;
    }
protected function loadOriginalClassAndSetAliases ( $ originalClassName ) { if ( $ this -> classOrInterfaceExists ( $ originalClassName ) || $ this -> loadClass ( $ originalClassName ) ) { foreach ( $ this -> aliasMap [ 'classNameToAliasMapping' ] [ $ originalClassName ] as $ aliasClassName ) { if ( ! $ this -> classOrInterfaceExists ( $ aliasClassName ) ) { class_alias ( $ originalClassName , $ aliasClassName ) ; } } return true ; } return null ; }
Load classes and set aliases.
The class_exists calls are safety guards to avoid fatals when
class files were included or aliases were set manually in userland code.

@param string $originalClassName
@return bool|null
Load classes and set aliases . The class_exists calls are safety guards to avoid fatals when class files were included or aliases were set manually in userland code .