vendor/craue/formflow-bundle/CraueFormFlowBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace Craue\FormFlowBundle;
  3. use Craue\FormFlowBundle\Util\TempFileUtil;
  4. use Symfony\Component\HttpKernel\Bundle\Bundle;
  5. /**
  6.  * @author Christian Raue <christian.raue@gmail.com>
  7.  * @copyright 2011-2020 Christian Raue
  8.  * @license http://opensource.org/licenses/mit-license.php MIT License
  9.  */
  10. class CraueFormFlowBundle extends Bundle {
  11.     /**
  12.      * {@inheritDoc}
  13.      */
  14.     public function boot() {
  15.         /*
  16.          * Removes all temporary files created while handling file uploads.
  17.          * Use a shutdown function to clean up even in case of a fatal error.
  18.          */
  19.         register_shutdown_function(function() : void {
  20.             TempFileUtil::removeTempFiles();
  21.         });
  22.     }
  23. }