BundleInterface::getPath()

string getPath() Gets the Bundle directory path. The path should always be returned as a Unix path (with /). Return Value string The Bundle absolute path

BundleEntryReaderInterface

interface BundleEntryReaderInterface implements BundleReaderInterface Reads individual entries of a resource file. Methods mixed read(string $path, string $locale) Reads a resource bundle. from BundleReaderInterface mixed readEntry(string $path, string $locale, array $indices, bool $fallback = true) Reads an entry from a resource bundle. Details mixed read(string $path, string $locale) Reads a resource bundle. Parameters string $path The

BundleEntryReader::setLocaleAliases()

setLocaleAliases(array $localeAliases) Stores a mapping of locale aliases to locales. This mapping is used when reading entries and merging them with their fallback locales. If an entry is read for a locale alias (e.g. "mo") that points to a locale with a fallback locale ("ro_MD"), the reader can continue at the correct fallback locale ("ro"). Parameters array $localeAliases A mapping of locale aliases to locales

BundleInterface

interface BundleInterface implements ContainerAwareInterface BundleInterface. Methods setContainer(ContainerInterface $container = null) Sets the container. from ContainerAwareInterface boot() Boots the Bundle. shutdown() Shutdowns the Bundle. build(ContainerBuilder $container) Builds the bundle. ExtensionInterface|null getContainerExtension() Returns the container extension that should be implicitly loaded. string getParent() Returns the bundle name that this bun

BundleCompilerInterface

interface BundleCompilerInterface Compiles a resource bundle. Methods compile(string $sourcePath, string $targetDir) Compiles a resource bundle at the given source to the given target directory. Details compile(string $sourcePath, string $targetDir) Compiles a resource bundle at the given source to the given target directory. Parameters string $sourcePath string $targetDir

BundleEntryReader

class BundleEntryReader implements BundleEntryReaderInterface Default implementation of {@link BundleEntryReaderInterface}. Methods __construct(BundleReaderInterface $reader) Creates an entry reader based on the given resource bundle reader. setLocaleAliases(array $localeAliases) Stores a mapping of locale aliases to locales. mixed read(string $path, string $locale) Reads a resource bundle. mixed readEntry(string $path, string $locale, array $indices, bool $fallback = true

BundleCompilerInterface

interface BundleCompilerInterface Compiles a resource bundle. Methods compile(string $sourcePath, string $targetDir) Compiles a resource bundle at the given source to the given target directory. Details compile(string $sourcePath, string $targetDir) Compiles a resource bundle at the given source to the given target directory. Parameters string $sourcePath string $targetDir

BundleEntryReader::read()

mixed read(string $path, string $locale) Reads a resource bundle. Parameters string $path The path to the resource bundle string $locale The locale to read Return Value mixed Returns an array or {@link \ArrayAccess} instance for complex data, a scalar value otherwise.

BundleEntryReader::readEntry()

mixed readEntry(string $path, string $locale, array $indices, bool $fallback = true) Reads an entry from a resource bundle. An entry can be selected from the resource bundle by passing the path to that entry in the bundle. For example, if the bundle is structured like this: TopLevel NestedLevel Entry: Value Then the value can be read by calling: $reader->readEntry('...', 'en', array('TopLevel', 'NestedLevel', 'Entry')); Parameters string $path The path to the r

BundleCompiler

class BundleCompiler implements BundleCompilerInterface Compiles .txt resource bundles to binary .res files. Methods __construct(string $genrb = 'genrb', string $envVars = '') Creates a new compiler based on the "genrb" executable. compile(string $sourcePath, string $targetDir) Compiles a resource bundle at the given source to the given target directory. Details __construct(string $genrb = 'genrb', string $envVars = '') Creates a new comp