protected function addLoaderFile(string $file, string $locale = null): void
	{
		if ($this->loader === null) {
			$builder = $this->getContainerBuilder();

			$loader = $builder->getByType(LoaderFactory::class);
			$this->loader = $builder->getDefinition($loader);
		}
		$this->loader->addSetup('addFile', [$file, $locale]);
	}
protected function addLoaderFile(string $file, string $locale = null): void
	{
		if ($this->loader === null) {
			$builder = $this->getContainerBuilder();

			$loader = $builder->getByType(LoaderFactory::class);
			$this->loader = $builder->getDefinition($loader);
		}
		$this->loader->addSetup('addFile', [$file, $locale]);
	}
protected function addLoaderFile ( string $ file , string $ locale = null ) : void { if ( $ this -> loader === null ) { $ builder = $ this -> getContainerBuilder ( ) ; $ loader = $ builder -> getByType ( LoaderFactory :: class ) ; $ this -> loader = $ builder -> getDefinition ( $ loader ) ; } $ this -> loader -> addSetup ( 'addFile' , [ $ file , $ locale ] ) ; }
Prida soubor do loaderu
@param string $file
@param string $locale
Prida soubor do loaderu