-
Notifications
You must be signed in to change notification settings - Fork 15
Installation
Installation of the bundle can be done using composer
and is the recommended way of adding the bundle to your application. To do so, in your command line enter the project directory and execute the following command to download the latest stable version of this bundle:
$ composer require hostnet/form-handler-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
When using Symfony Flex, Symfony will automatically enable the bundle. If Flex is not used, then in app/AppKernel.php
you need to enable the bundle by adding it to the list of registered bundles. Just add it to the list of already registered bundles like so:
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// ...
new Hostnet\Bundle\FormHandlerBundle\HostnetFormHandlerBundle(),
// ...
];
}
}
The form handler bundle requires no additional config, all configuration is done using tagged services.