public static function getByClassName($className)
    {
        $bind = self::getInstance()->bind;

        foreach ($bind as $abstract => $abstractClassName) {
            if ($className == $abstractClassName) {
                return self::get($abstract);
            }
        }

        throw new ContainerException('Cannot find "' . $className . '" in container');
    }
public static function getByClassName($className)
    {
        $bind = self::getInstance()->bind;

        foreach ($bind as $abstract => $abstractClassName) {
            if ($className == $abstractClassName) {
                return self::get($abstract);
            }
        }

        throw new ContainerException('Cannot find "' . $className . '" in container');
    }
public static function getByClassName ( $ className ) { $ bind = self :: getInstance ( ) -> bind ; foreach ( $ bind as $ abstract => $ abstractClassName ) { if ( $ className == $ abstractClassName ) { return self :: get ( $ abstract ) ; } } throw new ContainerException ( 'Cannot find "' . $ className . '" in container' ) ; }
Get the object instance in the container by class name

@param  string $className
@return object

@throws \Kotori\Exception\ContainerException
Get the object instance in the container by class name