* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * Bundle. * * @author Fabien Potencier */ class FrameworkBundle extends Bundle { /** * Boots the Bundle. */ public function boot() { if ($secret = $this->container->getParameter('csrf_secret')) { Form::setDefaultCsrfSecret($secret); Form::enableDefaultCsrfProtection(); } } }