PHP Interface Kdyby\Translation\IResourceLoader

Author: Filip Procházka ([email protected])
Show file Open project: kdyby/translation Interface Usage Examples

Public Methods

Method Description
addLoader ( string $format, Symfony\Component\Translation\Loader\LoaderInterface $loader ) Adds a loader to the translation extractor.
getLoaders ( ) : Symfony\Component\Translation\Loader\LoaderInterface[]
loadResource ( string $format, string $resource, string $domain, Symfony\Component\Translation\MessageCatalogue $catalogue )

Method Details

addLoader() public method

Adds a loader to the translation extractor.
public addLoader ( string $format, Symfony\Component\Translation\Loader\LoaderInterface $loader )
$format string The format of the loader
$loader Symfony\Component\Translation\Loader\LoaderInterface

getLoaders() public method

public getLoaders ( ) : Symfony\Component\Translation\Loader\LoaderInterface[]
return Symfony\Component\Translation\Loader\LoaderInterface[]

loadResource() public method

public loadResource ( string $format, string $resource, string $domain, Symfony\Component\Translation\MessageCatalogue $catalogue )
$format string
$resource string
$domain string
$catalogue Symfony\Component\Translation\MessageCatalogue