Download the PHP package indragunawan/facade-bundle without Composer
On this page you can find all versions of the php package indragunawan/facade-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download indragunawan/facade-bundle
More information about indragunawan/facade-bundle
Files in indragunawan/facade-bundle
Package facade-bundle
Short Description Support Facades for Symfony services.
License MIT
Informations about the package facade-bundle
FacadeBundle
Support Facades for Symfony service.
thanks to:
- Service Locator - for making all the referenced facade service lazy-loaded.
- Service Autoconfiguration - for making all classes that extend
Indragunawan\FacadeBundle\AbstractFacade
class automatically tagged as facade.
Documentation
- Installation
- Creating Facade
Installation
If your project already uses Symfony Flex, execute this command to download, register and configure the bundle automatically:
If you install without using Symfony Flex, first add the bundle by using composer then enable the bundle by adding new Indragunawan\FacadeBundle\IndragunawanFacadeBundle()
to the list of registered bundles in the app/AppKernel.php file of your project
Creating Facade
To create a facade create a class that extends base Indragunawan\FacadeBundle\AbstractFacade
class and implement the getFacadeAccessor
method that returns the service id
, support private and public service.
Now the facade now ready. Simply import the facade namespace. When you call any static method on the Foo
facade, then it will resolve the service that you define in getFacadeAccessor
method and call the requested method from the service.
License
This bundle is under the MIT license. See the complete license
All versions of facade-bundle with dependencies
psr/container Version ^1.0
symfony/dependency-injection Version ^3.4 || ^4.0 || ^5.0