public/index.php line 36

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\Tool;
  15. use Symfony\Component\HttpFoundation\Request;
  16. include __DIR__ "/../vendor/autoload.php";
  17. \Pimcore\Bootstrap::setProjectRoot();
  18. \Pimcore\Bootstrap::bootstrap();
  19. $request Request::createFromGlobals();
  20. // set current request as property on tool as there's no
  21. // request stack available yet
  22. Tool::setCurrentRequest($request);
  23. /** @var \Pimcore\Kernel $kernel */
  24. $kernel \Pimcore\Bootstrap::kernel();
  25. // reset current request - will be read from request stack from now on
  26. Tool::setCurrentRequest(null);
  27. $response $kernel->handle($request);
  28. $response->send();
  29. $kernel->terminate($request$response);
  30. /**
  31.  * Set empty for this function if you have problem with deprecation log
  32.  * trigger_deprecation
  33.  *
  34.  * @param  mixed $package
  35.  * @param  mixed $version
  36.  * @param  mixed $message
  37.  * @param  mixed $args
  38.  * @return void
  39.  */
  40. function trigger_deprecation(string $packagestring $versionstring $message, ...$args)
  41. {
  42. }