src/Viserio/Component/StaticalProxy/Provider/AliasLoaderServiceProvider.php
public static function createAliasLoader(ContainerInterface $container): AliasLoaderContract
    {
        $options = self::resolveOptions($container->get('config'));

        $loader    = new AliasLoader($options['aliases']);
        $cachePath = self::getCachePath($container, $options);

        if ($cachePath !== null) {
            $loader->setCachePath($cachePath);

            if ($options['real_time_proxy'] === true) {
                $loader->enableRealTimeStaticalProxy();
            }
        }

        return $loader;
    }
public static function createAliasLoader(ContainerInterface $container): AliasLoaderContract
    {
        $options = self::resolveOptions($container->get('config'));

        $loader    = new AliasLoader($options['aliases']);
        $cachePath = self::getCachePath($container, $options);

        if ($cachePath !== null) {
            $loader->setCachePath($cachePath);

            if ($options['real_time_proxy'] === true) {
                $loader->enableRealTimeStaticalProxy();
            }
        }

        return $loader;
    }
Create a new Alias loader.

@param \Psr\Container\ContainerInterface $container

@return \Viserio\Component\Contract\StaticalProxy\AliasLoader