BundleTransformer

class BundleTransformer Compiles a number of resource bundles based on predefined compilation rules. Methods addRule(TransformationRuleInterface $rule) Adds a new compilation rule. compileBundles(CompilationContextInterface $context) Runs the compilation with the given compilation context. createStubs(StubbingContextInterface $context) Details addRule(TransformationRuleInterface $rule) Adds a new compilation rule. Parameters Trans

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::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::getNamespace()

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

BundleInterface::shutdown()

shutdown() Shutdowns the Bundle.

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

BundleInterface::boot()

boot() Boots the Bundle.

BundleInterface::getName()

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