public/index.php line 34

Open in your IDE?
  1. <?php
  2. /**
  3.  * Pimcore
  4.  *
  5.  * This source file is available under two different licenses:
  6.  * - GNU General Public License version 3 (GPLv3)
  7.  * - Pimcore Enterprise License (PEL)
  8.  * Full copyright and license information is available in
  9.  * LICENSE.md which is distributed with this source code.
  10.  *
  11.  * @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  12.  * @license    http://www.pimcore.org/license     GPLv3 and PEL
  13.  */
  14. use Pimcore\Bootstrap;
  15. use Pimcore\Tool;
  16. use Symfony\Component\HttpFoundation\Request;
  17. include __DIR__ "/../vendor/autoload.php";
  18. Bootstrap::setProjectRoot();
  19. Bootstrap::bootstrap();
  20. $request Request::createFromGlobals();
  21. Tool::setCurrentRequest($request);
  22. $kernel Bootstrap::kernel();
  23. Tool::setCurrentRequest();
  24. $response $kernel->handle($request);
  25. $response->send();
  26. $kernel->terminate($request$response);