Register the loader of fixture

@param \holyshared\fixture\FixtureLoader $loader
@return holyshared\fixture\container\LoaderContainer
424040
public function register(FixtureLoader $loader)
    {
        $value = new Pair($loader->getName(), $loader);
        $this->loaders->add($value);
        return $this;
    }
835182
public function guessFromAssetsLoader(AssetsLoader $loader)
    {
        $this->setAssetsLoader($loader);
        $this
            ->setLayoutsDir($this->assets_loader->getAssetsRealPath())
            ->setToTemplate('setWebRootPath', $this->assets_loader->getAssetsWebPath())
            ->setToView('addDefaultViewParam', 'assets', $this->assets_loader->getAssetsWebPath())
            ->setToTemplate('setWebRootPath', $this->assets_loader->getDocumentRoot())
            ;
        return $this;
    }
688391
public function loadServices(FileLoader $loader)
    {
        // services, admin & config files
        foreach (['services', 'admin'] as $fileName) {
            if (file_exists($this->dir . $this->prefix . $fileName . $this->suffix)) {
                $loader->load($fileName . $this->suffix);
            }
        }

        return $this;
    }
255641
public static function getInstance(AssetsInstallerInterface $installer = null)
    {
        if (empty(self::$_instance)) {
            if (empty($installer)) {
                throw new \InvalidArgumentException(
                    sprintf('Can not instantiate autoloader generator singleton object "%s"' .
                        ' without an "AssetsInstallerInterface" object argument!',
                        get_called_class())
                );
            }
            $cls = get_called_class();
            self::$_instance = new $cls($installer);
        }
        return self::$_instance;
    }
732399
private function getFixtureLoader()
    {
        $container = $this->kernel->getContainer();

        $loader = class_exists('Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader')
            ? new DataFixturesLoader($container)
            : (class_exists('Doctrine\Bundle\FixturesBundle\Common\DataFixtures\Loader')
                ? new DoctrineFixturesLoader($container)
                : new SymfonyFixturesLoader($container));

        return $loader;
    }
220393
public static function instance(Autoload\ClassLoader $classLoader = null): self
    {
        static $instance;
        if (!$instance) {
            $instance = new self($classLoader);
        }
        return $instance;
    }
1019313
public function register()
    {
        Zilf::$container->register(
            Dispatcher::class, function () {
                return new Dispatcher(
                    function ($connection = null) {
                        return Zilf::$container['queue']->connection($connection);
                    }
                );
            }
        );
    }
749376
public function setLoader(ServiceLoader $loader){

		$this->loader = $loader;
		$that = $this;

		$this->loader->addInitializer(function ($instance) use ($that) {

		    // Inject broker to services
		    if ($instance instanceof Feature\ServiceBrokerAwareInterface) {
		        $instance->setServiceBroker($that);
		    }

		    // Inject event manager to services
		    if ($instance instanceof EventManagerAwareInterface) {
		        $instance->setEventManager($that->getEventManager());
		    }
		});

		return $this;
	}
678308
public function getTwigCompiler($loader)
    {
        $this->twig = new Twig_Environment($loader, array(
           'cache'       => storage_path().'/views',
           'autoescape'  => false,
           'auto_reload' => true
        ));

        // Hook twig to do what you want.
        $hooks = $this->config->get('theme.engines.twig.hooks');
        $this->twig = $hooks($this->twig);

        // Get facades aliases.
        $aliases = $this->config->get('app.aliases');

        // Laravel alias to allow.
        $allows = $this->config->get('theme.engines.twig.allows');

        foreach ($aliases as $alias => $class)
        {
            // Nothing allow if not exists in twig config.
            if ( ! in_array($alias, $allows)) continue;

            // Clasname with namspacing.
            $className = '\\'.$alias;

            // Some method is not in facade like Str.
            if ( ! method_exists($className, 'getFacadeRoot'))
            {
                $this->twig->addGlobal($alias, new $className());
            }
            // Method support real facade.
            else
            {
                $this->twig->addGlobal($alias, $className::getFacadeRoot());
            }
        }

        /*$function = new Twig_SimpleFunction('call', function($function)
        {
            $args = func_get_args();
            $args = array_splice($args, 1);

            return call_user_func_array($function, $args);
        });

        $this->twig->addFunction($function);*/

        return $this->twig;
    }
293760
public function addListenerLoader(LoaderInterface $loader)
	{
		if (!isset($this->loaders[$loader->getName()]))
		{
			//$loader->setDispatcher($this);

			$this->loaders[$loader->getName()] = $loader;
		}

		return $this;
	}
1048538
public function setLoader($name, LoaderInterface $loader)
    {
        // If name is int or null, get name from Loader object.
        $name = (is_numeric($name) || !$name) ? $loader->getName() : $name;

        $this->loaders[$name] = $loader;

        return $this;
    }
927453
public function addActionLoader(LoaderInterface $loader)
    {
        if ($this->handler) {
            throw new AlreadyBuildedException('The handler already builded.');
        }

        $this->actionLoaders[spl_object_hash($loader)] = $loader;

        return $this;
    }
603168
public function loader(callable $loader, string ...$types): BuilderInterface
    {
        $this->resolver->loader($loader, ...$types);

        return $this;
    }
469021
public function getLoader()
    {
        if ($this->loader === null) {
            $this->loader = new Loader($this->getCompileDir());
        }

        return $this->loader;
    }
953625
protected function loadRepoClass($loader, ContainerBuilder $container, array $config)
    {

        if (isset($config['repository']['repo']['class'])) {
            $container->setParameter('snide_travinizer.model.repo.class', $config['repository']['repo']['class']);
        }
    }
635910
public function prependTwigLoader(\Twig_LoaderInterface $twig_loader)
    {
      // Give precedence to the passed in loader
        $this->twig_loader = new \Twig_Loader_Chain(array($twig_loader, $this->twig_loader));
        return $this;
    }
991806
public function getLoader($prefix)
    {
        if (!$this->hasLoader($prefix)) {
            throw new \InvalidArgumentException(sprintf('A loader is not registered for the prefix "%s"', $prefix));
        }

        return $this->loaders[$prefix];
    }