public/index.php line 41

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. header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
  15. header("Cache-Control: post-check=0, pre-check=0"false);
  16. header("Pragma: no-cache");
  17. use Pimcore\Tool;
  18. use Symfony\Component\HttpFoundation\Request;
  19. include __DIR__ "/../vendor/autoload.php";
  20. \Pimcore\Bootstrap::setProjectRoot();
  21. \Pimcore\Bootstrap::bootstrap();
  22. $request Request::createFromGlobals();
  23. // set current request as property on tool as there's no
  24. // request stack available yet
  25. Tool::setCurrentRequest($request);
  26. /** @var \Pimcore\Kernel $kernel */
  27. $kernel \Pimcore\Bootstrap::kernel();
  28. // reset current request - will be read from request stack from now on
  29. Tool::setCurrentRequest(null);
  30. $response $kernel->handle($request);
  31. $response->send();
  32. $kernel->terminate($request$response);