LanguageBundleTransformationRule
class LanguageBundleTransformationRule implements TransformationRuleInterface
The rule for compiling the language bundle.
Methods
string | getBundleName() Returns the name of the compiled resource bundle. | |
string[] | beforeCompile(CompilationContextInterface $context) Runs instructions to be executed before compiling the sources of the resource bundle. | |
afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of the resource bundle. | ||
mixed | beforeCreateStub(StubbingContextInterface $context) Runs instructions to be executed before creating the stub version of the resource bundle. | |
afterCreateStub(StubbingContextInterface $context) Runs instructions to be executed after creating the stub version of the resource bundle. |
Details
string getBundleName()
Returns the name of the compiled resource bundle.
Return Value
string | The name of the bundle. |
string[] beforeCompile(CompilationContextInterface $context)
Runs instructions to be executed before compiling the sources of the resource bundle.
Parameters
CompilationContextInterface | $context | The contextual information of the compilation. |
Return Value
string[] | The source directories/files of the bundle. |
afterCompile(CompilationContextInterface $context)
Runs instructions to be executed after compiling the sources of the resource bundle.
Parameters
CompilationContextInterface | $context | The contextual information of the compilation. |
mixed beforeCreateStub(StubbingContextInterface $context)
Runs instructions to be executed before creating the stub version of the resource bundle.
Parameters
StubbingContextInterface | $context | The contextual information of the compilation. |
Return Value
mixed | The data to include in the stub version. |
afterCreateStub(StubbingContextInterface $context)
Runs instructions to be executed after creating the stub version of the resource bundle.
Parameters
StubbingContextInterface | $context | The contextual information of the compilation. |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Intl/ResourceBundle/Transformer/Rule/LanguageBundleTransformationRule.html