Returns handler id bu it's class name

@param string $className

@return int
@throws Exception
349907
public function handlerIdByClassName($className)
    {
        foreach ($this->handlers() as $id => $class) {
            if ($class->className() === $className) {
                return $id;
            }
        }

        throw new Exception("Handler with classname {$className} not found.");
    }
1367030
public function get($className) {
		try {
			return $this->container->get($className);
		} catch (ContainerException $e) {
			throw ExceptionHelper::buildException($e, '\\Ioc\\Exceptions\\DefinitionNotFoundException');
		} catch (Exception $e) {
			throw ExceptionHelper::buildException($e, '\\Exception');
		}
	}
766566
public function getTaxClassIdByTaxClassName($taxClassName)
    {

        // query whether or not, the requested tax class is available
        if (isset($this->taxClasses[$taxClassName])) {
            return (integer) $this->taxClasses[$taxClassName][MemberNames::CLASS_ID];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Found invalid tax class name %s', $taxClassName)
            )
        );
    }
438016
protected function getClassShortName(?string $className = null): string
	{
		$class = $className ?? static::class;

		$pos = strrpos($class, '\\');

		if($pos === false)
		{
			return $class;
		}

		return substr($class, $pos + 1);
	}
16240
public function getRelativeClass($className)
    {
        if (strpos($className, '\\') !== false) {
            $className = substr($className, strrpos($className, '\\') + 1);
        }

        return $className;
    }
33438
protected function checkClassForCompability( $className ) {
    $result = $className;
    if( isset( DeferredExceptionsGlobal::$defExcClasses [$className])){
       if( ! DeferredExceptionsGlobal::$defExcClasses [$className] ){
         $result = null;
       }
    } else {
      if( ! class_exists( $className ) || ! is_subclass_of( $className, 'Exception')) {
        DeferredExceptionsGlobal::$defExcClasses [$className] = false;
        $result = null;
      } else {
        DeferredExceptionsGlobal::$defExcClasses [$className] = true;
      }
    }
    return $result;
  }
371371
protected function createHandlerInstance($className, $handlerArgs)
    {
        if (method_exists($this, 'init' . $className)) {
            return call_user_func(array($this, 'init' . $className), explode(',', $handlerArgs));
        } else {
            return null;
        }
    }
441476
public function getObjectManagerNameByClassName($className)
    {
        $realClass = ClassUtils::getRealClass($className);
        if (false === $this->hasObjectManagerNameByClassName($realClass)) {
            $errMsg = sprintf('Failed to get the manager\'s name for class %s', $realClass);
            throw new Exception\ErrorBuildObjectManagerNameException($errMsg);
        }

        return $this->classNameToObjectManagerName[$realClass];
    }
969781
protected function getTypeForClassName($className)
    {
        if (empty($this->rootNamespace)) {
            return $className;
        }
        return $this->stripNamespace($this->rootNamespace, $className);
    }
835766
public function getClassDefinition($className)
    {
        foreach ($this->definitions as $key => $value) {
            if (!strcasecmp($key, $className)) {
                return $value;
            }
        }

        return false;
    }
79300
public function getProxyClassName($className)
    {
        $suffix = ltrim($className, '\\');
        
        if ($this->proxyClassSuffix !== null) {
            $suffix .= $this->proxyClassSuffix;    
        }
        
        return rtrim($this->proxyNamespace, '\\') . '\\'.self::MARKER.'\\' . $suffix;
    }
1204356
private function findTraced($className = null)
    {
        $traces     = debug_backtrace();
        $reflection = new ReflectionClass($className);
        $filename   = $reflection->getFileName();
        $traced     = null;


        foreach ($traces as $trace) {
            if (isset($trace['file']) and $filename == $trace['file']) {
                $traced = $trace;
                break;
            }
        }
        return $traced;
    }
717749
public function getModuleIdByClassName($className)
    {
        if (!\OxidEsales\Eshop\Core\NamespaceInformationProvider::isNamespacedClass($className)) {
            return $this->backwardsCompatibleGetModuleIdByClassName($className);
        }

        $moduleId = '';
        $extensions = (array) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aModuleExtensions');
        foreach ($extensions as $id => $moduleClasses) {
            if (in_array($className, $moduleClasses)) {
                $moduleId = $id;
                break;
            }
        }

        return $moduleId;
    }
1232734
public function getPreconditionByClassName($className)
    {
        if (!class_exists($className, true)) {
            throw new Exception(sprintf('The precondition class %s does not exist', $className));
        }
        $result = $this->app->make($className);
        if (!$result instanceof PreconditionInterface) {
            throw new Exception(sprintf('The class %1$s should implement the interface %2$s', $className, PreconditionInterface::class));
        }

        return $result;
    }
301266
private function getProcessorClassName($name)
    {
        $className = ucfirst($name) . 'Processor';

        foreach($this->processorNamespaces as $namespace) {
            $fullyQualifiedClassName = $namespace . '\\' . $className;
            if(class_exists($fullyQualifiedClassName)) {
                return $fullyQualifiedClassName;
            }
        }

        throw new \Exception('Class ' . $fullyQualifiedClassName . ' not found');
    }
242337
protected function getFrameworkManager($className)
    {
        switch ($className) {
            case 'Zepi\\Turbo\\Manager\\DataSourceManager':
                return $this->framework->getDataSourceManager();
            break;
            
            case 'Zepi\\Turbo\\Manager\\DependencyInjectionManager':
                return $this->framework->getDependencyInjectionManager();
            break;
                
            case 'Zepi\\Turbo\\Manager\\ModuleManager':
                return $this->framework->getModuleManager();
            break;
                
            case 'Zepi\\Turbo\\Manager\\RequestManager':
                return $this->framework->getRequestManager();
            break;
                
            case 'Zepi\\Turbo\\Manager\\RouteManager':
                return $this->framework->getRouteManager();
            break;
            
            case 'Zepi\\Turbo\\Manager\\RuntimeManager':
                return $this->framework->getRuntimeManager();
            break;
            
            default:
                throw new Exception('Cannot find framework manager "' . $className . '".');
            break;
        }
    }
664135
public static String getEventHandler(String className) throws IOException {
        if (getEventHandlers() != null) {
            String newHandler = getEventHandlers().get(className);
            if (newHandler != null)
                return newHandler;
        }
        return className;
    }