// Wenn keine Objektbedingungen vorhanden sind, beschränke die Suche auf Dokumente
$combinedConditions .= " AND $documentCondition";
}*/
$likeCondition = '( `data` LIKE ' . $db->quote('%' . $query . '%') . ' )';
if (!preg_match('/[+\-*"]/', $query)) {
// check for a boolean operator (which was not filtered by filterQueryParam()),
// if present, do not add asterisk at the end of the query
* @return true|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
}
return null;
return;
} elseif (false === include $file) {
return;
}
} else {
($this->classLoader)($class);
$file = '';
}
} finally {
error_reporting($e);
}
}
$autoloadedClass = self::$autoloadedClass;
self::$autoloadedClass = ltrim($this->resource, '\\');
try {
$exists[0] = class_exists($this->resource) || interface_exists($this->resource, false) || trait_exists($this->resource, false);
} catch (\Exception $e) {
$exists[1] = $e->getMessage();
try {
self::throwOnRequiredClass($this->resource, $e);
try {
if (isset($this->classReflectors[$class])) {
$classReflector = $this->classReflectors[$class];
} elseif (class_exists(ClassExistenceResource::class)) {
$resource = new ClassExistenceResource($class, false);
$classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
} else {
$classReflector = class_exists($class) ? new \ReflectionClass($class) : false;
}
} catch (\ReflectionException $e) {
if ($throw) {
if (80000 > \PHP_VERSION_ID) {
return;
}
foreach ($container->getDefinitions() as $id => $definition) {
if ($this->accept($definition) && $class = $container->getReflectionClass($definition->getClass(), false)) {
$this->processClass($container, $class);
}
}
}
*/
public function compile(ContainerBuilder $container)
{
try {
foreach ($this->passConfig->getPasses() as $pass) {
$pass->process($container);
}
} catch (\Exception $e) {
$usedEnvs = [];
$prev = $e;
if ($resolveEnvPlaceholders && $bag instanceof EnvPlaceholderParameterBag) {
$compiler->addPass(new ResolveEnvPlaceholdersPass(), PassConfig::TYPE_AFTER_REMOVING, -1000);
}
$compiler->compile($this);
foreach ($this->definitions as $id => $definition) {
if ($this->trackResources && $definition->isLazy()) {
$this->getReflectionClass($definition->getClass());
}
}
try {
$container = null;
$container = $this->buildContainer();
$container->compile();
} finally {
if ($collectDeprecations) {
restore_error_handler();
@file_put_contents($buildDir.'/'.$class.'Deprecations.log', serialize(array_values($collectedLogs)));
/**
* {@inheritdoc}
*/
protected function initializeContainer()
{
parent::initializeContainer();
// initialize runtime cache (defined as synthetic service)
RuntimeCache::getInstance();
// set the extension config on the container
$_ENV['SHELL_VERBOSITY'] = 3;
$_SERVER['SHELL_VERBOSITY'] = 3;
}
$this->initializeBundles();
$this->initializeContainer();
$container = $this->container;
if ($container->hasParameter('kernel.trusted_hosts') && $trustedHosts = $container->getParameter('kernel.trusted_hosts')) {
Request::setTrustedHosts($trustedHosts);
return;
}
if (null === $this->container) {
$this->preBoot();
}
foreach ($this->getBundles() as $bundle) {
$bundle->setContainer($this->container);
$bundle->boot();
$this->setSystemRequirements();
// initialize extension manager config
$this->extensionConfig = new Extension\Config();
parent::boot();
}
/**
* {@inheritdoc}
*/
throw new \InvalidArgumentException(sprintf('Defined Kernel Class %s needs to extend the \Pimcore\Kernel Class', $kernelClass));
}
$kernel = new $kernelClass($environment, $debug);
\Pimcore::setKernel($kernel);
$kernel->boot();
$conf = \Pimcore::getContainer()->getParameter('pimcore.config');
if ($conf['general']['timezone']) {
date_default_timezone_set($conf['general']['timezone']);
// set current request as property on tool as there's no
// request stack available yet
Tool::setCurrentRequest($request);
/** @var \Pimcore\Kernel $kernel */
$kernel = \Pimcore\Bootstrap::kernel();
// reset current request - will be read from request stack from now on
Tool::setCurrentRequest(null);
$response = $kernel->handle($request);
ParseError
|
---|
ParseError: syntax error, unexpected variable "$likeCondition", expecting "function" or "const" at /html/pimcore/src/Service/CustomSearchService.php:101 at Composer\Autoload\includeFile('/html/pimcore/vendor/composer/../../src/Service/CustomSearchService.php') (/html/pimcore/vendor/composer/ClassLoader.php:428) at Composer\Autoload\ClassLoader->loadClass('App\\Service\\CustomSearchService') (/html/pimcore/vendor/symfony/error-handler/DebugClassLoader.php:294) at Symfony\Component\ErrorHandler\DebugClassLoader->loadClass('App\\Service\\CustomSearchService') at class_exists('App\\Service\\CustomSearchService') (/html/pimcore/vendor/symfony/config/Resource/ClassExistenceResource.php:78) at Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0) (/html/pimcore/vendor/symfony/dependency-injection/ContainerBuilder.php:370) at Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('App\\Service\\CustomSearchService', false) (/html/pimcore/vendor/symfony/dependency-injection/Compiler/RegisterAutoconfigureAttributesPass.php:39) at Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass->process(object(ContainerBuilder)) (/html/pimcore/vendor/symfony/dependency-injection/Compiler/Compiler.php:82) at Symfony\Component\DependencyInjection\Compiler\Compiler->compile(object(ContainerBuilder)) (/html/pimcore/vendor/symfony/dependency-injection/ContainerBuilder.php:757) at Symfony\Component\DependencyInjection\ContainerBuilder->compile() (/html/pimcore/vendor/symfony/http-kernel/Kernel.php:546) at Symfony\Component\HttpKernel\Kernel->initializeContainer() (/html/pimcore/vendor/pimcore/pimcore/lib/Kernel.php:305) at Pimcore\Kernel->initializeContainer() (/html/pimcore/vendor/symfony/http-kernel/Kernel.php:787) at Symfony\Component\HttpKernel\Kernel->preBoot() (/html/pimcore/vendor/symfony/http-kernel/Kernel.php:128) at Symfony\Component\HttpKernel\Kernel->boot() (/html/pimcore/vendor/pimcore/pimcore/lib/Kernel.php:284) at Pimcore\Kernel->boot() (/html/pimcore/vendor/pimcore/pimcore/lib/Bootstrap.php:262) at Pimcore\Bootstrap::kernel() (/html/pimcore/public/index.php:31) |