To accomplish what you requested, you will need the following:
MyPlugin/ modules/ my_module/ actions/ actions.class.php templates/ indexSuccess.php
Then you will need to enable the plugin in ProjectConfiguration, and also enable the module in your settings.yml for any applications that you want to use.
Routing is not performed automatically. You need to add routes manually in routing.yml, or you can create a listener and add / add routes when routing.load_configuration fired. USING the second option also involves creating the PluginConfiguration class, in which listeners connect to the event through the event dispatcher.
Basically, the plugin follows the same basic structure as the application, in addition to everything that is optional. Regardless of whether you need to do anything, it really depends on what your plugin does. You can also take a look at using sfTaskExtraPlugin , it has a task to create a basic plugin skeleton and a plugin module skeleton.
source share