BundleReaderInterface

interface BundleReaderInterface Reads resource bundle files. Methods mixed read(string $path, string $locale) Reads a resource bundle. Details 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.

BundleReaderInterface::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.

BundleReaderInterface::getLocales()

string[] getLocales(string $path) Reads the available locales of a resource bundle. Parameters string $path The path to the resource bundle. Return Value string[] A list of supported locale codes.

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

BundleInterface::getNamespace()

string getNamespace() Gets the Bundle namespace. Return Value string The Bundle namespace

BundleInterface::getName()

string getName() Returns the bundle name (the class short name). Return Value string The Bundle name

BundleInterface::shutdown()

shutdown() Shutdowns the Bundle.

BundleInterface::getParent()

string getParent() Returns the bundle name that this bundle overrides. Despite its name, this method does not imply any parent/child relationship between the bundles, just a way to extend and override an existing bundle. Return Value string The Bundle name it overrides or null if no parent

BundleInterface::boot()

boot() Boots the Bundle.

BundleInterface::getContainerExtension()

ExtensionInterface|null getContainerExtension() Returns the container extension that should be implicitly loaded. Return Value ExtensionInterface|null The default extension or null if there is none