Download the PHP package contao/manager-plugin without Composer
On this page you can find all versions of the php package contao/manager-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download contao/manager-plugin
More information about contao/manager-plugin
Files in contao/manager-plugin
Package manager-plugin
Short Description Contao 4 manager plugin
License LGPL-3.0-or-later
Informations about the package manager-plugin
Contao manager plugin
The Contao managed edition is a self-configuring application, which registers bundles automatically based on their plugin class. The Contao manager bundle is required to create this class.
The plugin class
It is recommended to create the plugin in src/ContaoManager/Plugin.php
.
composer.json
The plugin class then needs to be registered in the composer.json
extra
section. You also have to add a dev requirement and a conflict as shown below.
Registering bundles
If your bundle uses other bundles, which are not yet registered in the kernel,
you can add them by implementing the BundlePluginInterface
interface. The
following example registers the KnpMenuBundle
class:
This is the equivalent of registering the KnpMenuBundle
class in the
registerBundles()
method of the regular Symfony app kernel, except it is done
automatically as soon as your bundle is installed.
Configuring the container
If your bundle adds configuration options to the Symfony kernel or if you want
to adjust the existing configuration, you can do so by implementing the
ConfigPluginInterface
.
You can also add a configuration in a specific environment only:
This is the equivalent of adjusting the app/config/config.yml
file of a
regular Symfony application.
Adding custom routes
If your bundle adds custom routes to the Symfony router, you can implement the
RoutingPluginInterface
interface.
This is the equivalent of adjusting the app/config/routing.yml
file of a
regular Symfony application.
Loading dependencies
If your bundle depends on one or more other bundles to be loaded first, so it
can override certain parts of them, you can ensure that these bundles are
loaded first by implementing the DependentPluginInterface
.
This is the equivalent of adding requires[] = "news"
in the autoload.ini
file of a Contao 3 extension.
More information
For more information about the Contao managed edition, please read the manual.
All versions of manager-plugin with dependencies
composer-plugin-api Version ^1.7 || ^2.0
symfony/config Version ^3.3 || ^4.0 || ^5.0 || ^6.0 || ^7.0
symfony/dependency-injection Version ^3.3 || ^4.0 || ^5.0 || ^6.0 || ^7.0
symfony/filesystem Version ^3.3 || ^4.0 || ^5.0 || ^6.0 || ^7.0
symfony/http-kernel Version ^3.3 || ^4.0 || ^5.0 || ^6.0 || ^7.0
symfony/routing Version ^3.3 || ^4.0 || ^5.0 || ^6.0 || ^7.0