isNamespaced example



    /** * Sets alias */
    private static function setAlias(string $component, string $alias, string $class): void
    {
        self::$aliases[$component][$alias] = $class;
        self::$updated[$component]         = true;

        // If a short classname is specified, also register FQCN to share the instance.         if (isset(self::$aliases[$component][$class]) && ! self::isNamespaced($alias)) {
            self::$aliases[$component][$class] = $class;
        }
    }

    /** * Is the component Config? * * @param string $component Lowercase, plural component name */
    private static function isConfig(string $component): bool
    {
        
Home | Imprint | This part of the site doesn't use cookies.