Twig \ Error \ LoaderError
Template ".html.twig" is not defined. Twig\Error\LoaderError thrown with message "Template ".html.twig" is not defined." Stacktrace: #50 Twig\Error\LoaderError in /home/westerngreece/public_html/dv/vendor/twig/twig/src/Loader/ChainLoader.php:99 #49 Twig\Loader\ChainLoader:getCacheKey in /home/westerngreece/public_html/dv/vendor/twig/twig/src/Environment.php:261 #48 Twig\Environment:getTemplateClass in /home/westerngreece/public_html/dv/vendor/twig/twig/src/Environment.php:309 #47 Twig\Environment:load in /home/westerngreece/public_html/dv/vendor/twig/twig/src/Environment.php:277 #46 Twig\Environment:render in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-twigrenderer/src/TwigRenderer.php:96 #45 Mezzio\Twig\TwigRenderer:render in /home/westerngreece/public_html/dv/src/App/src/Action/PageAction.php:86 #44 App\Action\PageAction:handle in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Middleware/RequestHandlerMiddleware.php:54 #43 Laminas\Stratigility\Middleware\RequestHandlerMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #42 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #41 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:84 #40 Laminas\Stratigility\MiddlewarePipe:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Route.php:85 #39 Mezzio\Router\Route:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/RouteResult.php:97 #38 Mezzio\Router\RouteResult:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/DispatchMiddleware.php:30 #37 Mezzio\Router\Middleware\DispatchMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #36 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #35 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/src/App/src/Middleware/SlimFlashMiddleware.php:23 #34 App\Middleware\SlimFlashMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #33 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #32 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-helpers/src/UrlHelperMiddleware.php:48 #31 Mezzio\Helper\UrlHelperMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #30 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #29 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/MethodNotAllowedMiddleware.php:44 #28 Mezzio\Router\Middleware\MethodNotAllowedMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #27 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #26 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/ImplicitOptionsMiddleware.php:63 #25 Mezzio\Router\Middleware\ImplicitOptionsMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #24 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #23 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/ImplicitHeadMiddleware.php:76 #22 Mezzio\Router\Middleware\ImplicitHeadMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #21 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #20 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/RouteMiddleware.php:50 #19 Mezzio\Router\Middleware\RouteMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #18 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #17 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/src/App/src/Middleware/SetLocaleMiddleware.php:67 #16 App\Middleware\SetLocaleMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #15 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #14 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio-helpers/src/ServerUrlMiddleware.php:36 #13 Mezzio\Helper\ServerUrlMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #12 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #11 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Middleware/ErrorHandler.php:144 #10 Laminas\Stratigility\Middleware\ErrorHandler:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #9 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #8 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/los/basepath/src/BasePathMiddleware.php:38 #7 LosMiddleware\BasePath\BasePathMiddleware:process in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php:41 #6 Mezzio\Middleware\LazyLoadingMiddleware:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php:61 #5 Laminas\Stratigility\Next:handle in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:84 #4 Laminas\Stratigility\MiddlewarePipe:process in /home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:73 #3 Laminas\Stratigility\MiddlewarePipe:handle in /home/westerngreece/public_html/dv/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php:96 #2 Laminas\HttpHandlerRunner\RequestHandlerRunner:run in /home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Application.php:76 #1 Mezzio\Application:run in /home/westerngreece/public_html/dv/public/index.php:46 #0 {closure} in /home/westerngreece/public_html/dv/public/index.php:47
Stack frames (51)
50
Twig\Error\LoaderError
/vendor/twig/twig/src/Loader/ChainLoader.php99
49
Twig\Loader\ChainLoader getCacheKey
/vendor/twig/twig/src/Environment.php261
48
Twig\Environment getTemplateClass
/vendor/twig/twig/src/Environment.php309
47
Twig\Environment load
/vendor/twig/twig/src/Environment.php277
46
Twig\Environment render
/vendor/mezzio/mezzio-twigrenderer/src/TwigRenderer.php96
45
Mezzio\Twig\TwigRenderer render
/src/App/src/Action/PageAction.php86
44
App\Action\PageAction handle
/vendor/laminas/laminas-stratigility/src/Middleware/RequestHandlerMiddleware.php54
43
Laminas\Stratigility\Middleware\RequestHandlerMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
42
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
41
Laminas\Stratigility\Next handle
/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php84
40
Laminas\Stratigility\MiddlewarePipe process
/vendor/mezzio/mezzio-router/src/Route.php85
39
Mezzio\Router\Route process
/vendor/mezzio/mezzio-router/src/RouteResult.php97
38
Mezzio\Router\RouteResult process
/vendor/mezzio/mezzio-router/src/Middleware/DispatchMiddleware.php30
37
Mezzio\Router\Middleware\DispatchMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
36
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
35
Laminas\Stratigility\Next handle
/src/App/src/Middleware/SlimFlashMiddleware.php23
34
App\Middleware\SlimFlashMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
33
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
32
Laminas\Stratigility\Next handle
/vendor/mezzio/mezzio-helpers/src/UrlHelperMiddleware.php48
31
Mezzio\Helper\UrlHelperMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
30
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
29
Laminas\Stratigility\Next handle
/vendor/mezzio/mezzio-router/src/Middleware/MethodNotAllowedMiddleware.php44
28
Mezzio\Router\Middleware\MethodNotAllowedMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
27
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
26
Laminas\Stratigility\Next handle
/vendor/mezzio/mezzio-router/src/Middleware/ImplicitOptionsMiddleware.php63
25
Mezzio\Router\Middleware\ImplicitOptionsMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
24
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
23
Laminas\Stratigility\Next handle
/vendor/mezzio/mezzio-router/src/Middleware/ImplicitHeadMiddleware.php76
22
Mezzio\Router\Middleware\ImplicitHeadMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
21
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
20
Laminas\Stratigility\Next handle
/vendor/mezzio/mezzio-router/src/Middleware/RouteMiddleware.php50
19
Mezzio\Router\Middleware\RouteMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
18
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
17
Laminas\Stratigility\Next handle
/src/App/src/Middleware/SetLocaleMiddleware.php67
16
App\Middleware\SetLocaleMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
15
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
14
Laminas\Stratigility\Next handle
/vendor/mezzio/mezzio-helpers/src/ServerUrlMiddleware.php36
13
Mezzio\Helper\ServerUrlMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
12
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
11
Laminas\Stratigility\Next handle
/vendor/laminas/laminas-stratigility/src/Middleware/ErrorHandler.php144
10
Laminas\Stratigility\Middleware\ErrorHandler process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
9
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
8
Laminas\Stratigility\Next handle
/vendor/los/basepath/src/BasePathMiddleware.php38
7
LosMiddleware\BasePath\BasePathMiddleware process
/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php41
6
Mezzio\Middleware\LazyLoadingMiddleware process
/vendor/laminas/laminas-stratigility/src/Next.php61
5
Laminas\Stratigility\Next handle
/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php84
4
Laminas\Stratigility\MiddlewarePipe process
/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php73
3
Laminas\Stratigility\MiddlewarePipe handle
/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php96
2
Laminas\HttpHandlerRunner\RequestHandlerRunner run
/vendor/mezzio/mezzio/src/Application.php76
1
Mezzio\Application run
/public/index.php46
0
{closure}
/public/index.php47
/home/westerngreece/public_html/dv/vendor/twig/twig/src/Loader/ChainLoader.php
 
        return $this->hasSourceCache[$name] = false;
    }
 
    public function getCacheKey(string $name): string
    {
        $exceptions = [];
        foreach ($this->loaders as $loader) {
            if (!$loader->exists($name)) {
                continue;
            }
 
            try {
                return $loader->getCacheKey($name);
            } catch (LoaderError $e) {
                $exceptions[] = \get_class($loader).': '.$e->getMessage();
            }
        }
 
        throw new LoaderError(sprintf('Template "%s" is not defined%s.', $name, $exceptions ? ' ('.implode(', ', $exceptions).')' : ''));
    }
 
    public function isFresh(string $name, int $time): bool
    {
        $exceptions = [];
        foreach ($this->loaders as $loader) {
            if (!$loader->exists($name)) {
                continue;
            }
 
            try {
                return $loader->isFresh($name, $time);
            } catch (LoaderError $e) {
                $exceptions[] = \get_class($loader).': '.$e->getMessage();
            }
        }
 
        throw new LoaderError(sprintf('Template "%s" is not defined%s.', $name, $exceptions ? ' ('.implode(', ', $exceptions).')' : ''));
    }
}
/home/westerngreece/public_html/dv/vendor/twig/twig/src/Environment.php
    /**
     * Gets the template class associated with the given string.
     *
     * The generated template class is based on the following parameters:
     *
     *  * The cache key for the given template;
     *  * The currently enabled extensions;
     *  * Whether the Twig C extension is available or not;
     *  * PHP version;
     *  * Twig version;
     *  * Options with what environment was created.
     *
     * @param string   $name  The name for which to calculate the template class name
     * @param int|null $index The index if it is an embedded template
     *
     * @internal
     */
    public function getTemplateClass(string $name, int $index = null): string
    {
        $key = $this->getLoader()->getCacheKey($name).$this->optionsHash;
 
        return $this->templateClassPrefix.hash('sha256', $key).(null === $index ? '' : '___'.$index);
    }
 
    /**
     * Renders a template.
     *
     * @param string|TemplateWrapper $name The template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function render($name, array $context = []): string
    {
        return $this->load($name)->render($context);
    }
 
    /**
     * Displays a template.
/home/westerngreece/public_html/dv/vendor/twig/twig/src/Environment.php
    {
        $this->load($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
     * @param string|TemplateWrapper $name The template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws RuntimeError When a previously generated cache is corrupted
     * @throws SyntaxError  When an error occurred during compilation
     */
    public function load($name): TemplateWrapper
    {
        if ($name instanceof TemplateWrapper) {
            return $name;
        }
 
        return new TemplateWrapper($this, $this->loadTemplate($this->getTemplateClass($name), $name));
    }
 
    /**
     * Loads a template internal representation.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @param string $name  The template name
     * @param int    $index The index if it is an embedded template
     *
     * @throws LoaderError  When the template cannot be found
     * @throws RuntimeError When a previously generated cache is corrupted
     * @throws SyntaxError  When an error occurred during compilation
     *
     * @internal
     */
    public function loadTemplate(string $cls, string $name, int $index = null): Template
    {
        $mainCls = $cls;
/home/westerngreece/public_html/dv/vendor/twig/twig/src/Environment.php
     */
    public function getTemplateClass(string $name, int $index = null): string
    {
        $key = $this->getLoader()->getCacheKey($name).$this->optionsHash;
 
        return $this->templateClassPrefix.hash('sha256', $key).(null === $index ? '' : '___'.$index);
    }
 
    /**
     * Renders a template.
     *
     * @param string|TemplateWrapper $name The template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function render($name, array $context = []): string
    {
        return $this->load($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string|TemplateWrapper $name The template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function display($name, array $context = []): void
    {
        $this->load($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
     * @param string|TemplateWrapper $name The template name
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-twigrenderer/src/TwigRenderer.php
 
    /**
     * Render
     *
     * @param array|object $params
     * @throws LoaderError
     * @throws RuntimeError
     * @throws SyntaxError
     */
    public function render(string $name, $params = []): string
    {
        // Merge parameters based on requested template name
        $params = $this->mergeParams($name, $this->normalizeParams($params));
 
        $name = $this->normalizeTemplate($name);
 
        // Merge parameters based on normalized template name
        $params = $this->mergeParams($name, $params);
 
        return $this->template->render($name, $params);
    }
 
    /**
     * Add a path for template
     *
     * @throws LoaderError
     */
    public function addPath(string $path, ?string $namespace = null): void
    {
        $namespace = $namespace ?: FilesystemLoader::MAIN_NAMESPACE;
        $this->twigLoader->addPath($path, $namespace);
    }
 
    /**
     * Get the template directories
     *
     * @return TemplatePath[]
     */
    public function getPaths(): array
    {
/home/westerngreece/public_html/dv/src/App/src/Action/PageAction.php
 
        $data['menus'] = $this->queryMenu->getItems(0, 0, ['language' => $locale]);
 
        $htmlTemplate = '';
 
        switch ($data['content']['type']) {
            case 'page':
                $htmlTemplate = empty($content['template']) ? 'app::page' : $content['template'];
                break;
            case 'collection':
                $content = $data['content'];
                $htmlTemplate = empty($content['template']) ? 'app::collection': $content['template'];
                $this->queryCollection->setCollectionName($content['collection']);
                $data['items'] = $this->queryCollection->getItems($locale, $content['sql']);
                break;
                // TODO: collection item, template: e.g announcement-list -> announcement-item
        }
 
        return new HtmlResponse(
            $this->htmlRenderer->render($htmlTemplate, $data)
        );
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Middleware/RequestHandlerMiddleware.php
 
    public function __construct(RequestHandlerInterface $handler)
    {
        $this->handler = $handler;
    }
 
    /**
     * Proxies to decorated handler to handle the request.
     */
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        return $this->handler->handle($request);
    }
 
    /**
     * Proxies to decorated handler to handle the request.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        return $this->handler->handle($request);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php
     * If the pipeline is empty at the time this method is invoked, it will
     * raise an exception.
     *
     * @throws Exception\EmptyPipelineException if no middleware is present in
     *     the instance in order to process the request.
     */
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        return $this->process($request, new EmptyPipelineHandler(__CLASS__));
    }
 
    /**
     * PSR-15 middleware invocation.
     *
     * Executes the internal pipeline, passing $handler as the "final
     * handler" in cases when the pipeline exhausts itself.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        return (new Next($this->pipeline, $handler))->handle($request);
    }
 
    /**
     * Attach middleware to the pipeline.
     */
    public function pipe(MiddlewareInterface $middleware) : void
    {
        $this->pipeline->enqueue($middleware);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Route.php
        ?string $name = null
    ) {
        $this->path       = $path;
        $this->middleware = $middleware;
        $this->methods    = is_array($methods) ? $this->validateHttpMethods($methods) : $methods;
 
        if (! $name) {
            $name = $this->methods === self::HTTP_METHOD_ANY
                ? $path
                : $path . '^' . implode(self::HTTP_METHOD_SEPARATOR, $this->methods);
        }
        $this->name = $name;
    }
 
    /**
     * Proxies to the middleware composed during instantiation.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        return $this->middleware->process($request, $handler);
    }
 
    public function getPath(): string
    {
        return $this->path;
    }
 
    /**
     * Set the route name.
     */
    public function setName(string $name): void
    {
        $this->name = $name;
    }
 
    public function getName(): string
    {
        return $this->name;
    }
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/RouteResult.php
        $result->allowedMethods = $methods;
 
        return $result;
    }
 
    /**
     * Process the result as middleware.
     *
     * If the result represents a failure, it passes handling to the handler.
     *
     * Otherwise, it processes the composed middleware using the provide request
     * and handler.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        if ($this->isFailure()) {
            return $handler->handle($request);
        }
 
        return $this->getMatchedRoute()->process($request, $handler);
    }
 
    /**
     * Does the result represent successful routing?
     */
    public function isSuccess(): bool
    {
        return $this->success;
    }
 
    /**
     * Retrieve the route that resulted in the route match.
     *
     * @return false|null|Route false if representing a routing failure;
     *     null if not created via fromRoute(); Route instance otherwise.
     */
    public function getMatchedRoute()
    {
        return $this->isFailure() ? false : $this->route;
    }
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/DispatchMiddleware.php
use Psr\Http\Server\RequestHandlerInterface;
 
/**
 * Default dispatch middleware.
 *
 * Checks for a composed route result in the request. If none is provided,
 * delegates request processing to the handler.
 *
 * Otherwise, it delegates processing to the route result.
 */
class DispatchMiddleware implements MiddlewareInterface
{
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $routeResult = $request->getAttribute(RouteResult::class, false);
        if (! $routeResult) {
            return $handler->handle($request);
        }
 
        return $routeResult->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/src/App/src/Middleware/SlimFlashMiddleware.php
namespace App\Middleware;
 
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Slim\Flash\Messages;
 
/**
 * Description of SlimFlashMiddleware
 *
 * @author dvossos
 */
class SlimFlashMiddleware implements MiddlewareInterface
{
 
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        //session_start();
        return $handler->handle($request->withAttribute('flash', new Messages()));
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-helpers/src/UrlHelperMiddleware.php
        $this->helper = $helper;
    }
 
    /**
     * Inject the helper with the request instance.
     *
     * Inject the UrlHelper instance with a RouteResult, if present as a request attribute.
     * Injects the helper, and then dispatches the next middleware.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->helper->setRequest($request);
 
        $result = $request->getAttribute(RouteResult::class, false);
 
        if ($result instanceof RouteResult) {
            $this->helper->setRouteResult($result);
        }
 
        return $handler->handle($request);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/MethodNotAllowedMiddleware.php
 * failure, it passes handling to the provided handler.
 */
class MethodNotAllowedMiddleware implements MiddlewareInterface
{
    /** @var callable */
    private $responseFactory;
 
    public function __construct(callable $responseFactory)
    {
        // Factories is wrapped in a closure in order to enforce return type safety.
        $this->responseFactory = function () use ($responseFactory): ResponseInterface {
            return $responseFactory();
        };
    }
 
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $routeResult = $request->getAttribute(RouteResult::class);
        if (! $routeResult || ! $routeResult->isMethodFailure()) {
            return $handler->handle($request);
        }
 
        return ($this->responseFactory)()
            ->withStatus(StatusCode::STATUS_METHOD_NOT_ALLOWED)
            ->withHeader('Allow', implode(',', $routeResult->getAllowedMethods()));
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/ImplicitOptionsMiddleware.php
    /**
     * @param callable $responseFactory A factory capable of returning an
     *     empty ResponseInterface instance to return for implicit OPTIONS
     *     requests.
     */
    public function __construct(callable $responseFactory)
    {
        // Factories is wrapped in a closure in order to enforce return type safety.
        $this->responseFactory = function () use ($responseFactory): ResponseInterface {
            return $responseFactory();
        };
    }
 
    /**
     * Handle an implicit OPTIONS request.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        if ($request->getMethod() !== RequestMethod::METHOD_OPTIONS) {
            return $handler->handle($request);
        }
 
        $result = $request->getAttribute(RouteResult::class);
        if (! $result) {
            return $handler->handle($request);
        }
 
        if ($result->isFailure() && ! $result->isMethodFailure()) {
            return $handler->handle($request);
        }
 
        if ($result->getMatchedRoute()) {
            return $handler->handle($request);
        }
 
        $allowedMethods = $result->getAllowedMethods();
 
        return ($this->responseFactory)()->withHeader('Allow', implode(',', $allowedMethods));
    }
}
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/ImplicitHeadMiddleware.php
    {
        $this->router = $router;
 
        // Factory is wrapped in closur in order to enforce return type safety.
        $this->streamFactory = function () use ($streamFactory): StreamInterface {
            return $streamFactory();
        };
    }
 
    /**
     * Handle an implicit HEAD request.
     *
     * If the route allows GET requests, dispatches as a GET request and
     * resets the response body to be empty; otherwise, creates a new empty
     * response.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        if ($request->getMethod() !== RequestMethod::METHOD_HEAD) {
            return $handler->handle($request);
        }
 
        $result = $request->getAttribute(RouteResult::class);
        if (! $result) {
            return $handler->handle($request);
        }
 
        if ($result->getMatchedRoute()) {
            return $handler->handle($request);
        }
 
        $routeResult = $this->router->match($request->withMethod(RequestMethod::METHOD_GET));
        if ($routeResult->isFailure()) {
            return $handler->handle($request);
        }
 
        // Copy matched parameters like RouteMiddleware does
        foreach ($routeResult->getMatchedParams() as $param => $value) {
            $request = $request->withAttribute($param, $value);
        }
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-router/src/Middleware/RouteMiddleware.php
    {
        $this->router = $router;
    }
 
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $result = $this->router->match($request);
 
        // Inject the actual route result, as well as individual matched parameters.
        $request = $request
            ->withAttribute(RouteResult::class, $result)
            ->withAttribute(ZendExpressiveRouteResult::class, $result);
 
        if ($result->isSuccess()) {
            foreach ($result->getMatchedParams() as $param => $value) {
                $request = $request->withAttribute($param, $value);
            }
        }
 
        return $handler->handle($request);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/src/App/src/Middleware/SetLocaleMiddleware.php
        $path = $uri->getPath();
 
        // e.g. http://localhost/en_US/news/list
        // locale in uri must match locale directory
        if (!preg_match('#^/(?P<locale>[a-z]{2}([-_][a-zA-Z]{2}|))/#', $path, $matches)) {
            Locale::setDefault('el');
            $this->initGetText();
            $this->urlHelper->setBasePath(empty($this->losBasePath) ? 'el_GR' : $this->losBasePath . '/el_GR');
            $this->renderer->addDefaultParam(TemplateRendererInterface::TEMPLATE_ALL, 'locale', 'el');
            return $handler->handle($request);
        }
 
        $locale = $matches['locale'];
        Locale::setDefault(Locale::canonicalize($locale));
        $this->initGetText();
        $this->urlHelper->setBasePath(empty($this->losBasePath) ? $locale : $this->losBasePath . '/' . $locale);
        $this->renderer->addDefaultParam(TemplateRendererInterface::TEMPLATE_ALL, 'locale', $locale);
 
        return $handler->handle($request->withUri(
            $uri->withPath(substr($path, strlen($locale) + 1))
        ));
    }
 
    private function initGetText()
    {
        $locale = Locale::getDefault();
        putenv('LC_ALL=' . $locale);
        setlocale(LC_ALL, $locale);
        putenv('LANGUAGE=' . $locale);
 
        bindtextdomain('messages', __DIR__ . '/../../locale');
        bind_textdomain_codeset('messages', 'UTF-8');
 
        textdomain('messages');
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio-helpers/src/ServerUrlMiddleware.php
 
class ServerUrlMiddleware implements MiddlewareInterface
{
    /** @var ServerUrlHelper */
    private $helper;
 
    public function __construct(ServerUrlHelper $helper)
    {
        $this->helper = $helper;
    }
 
    /**
     * Inject the ServerUrlHelper instance with the request URI.
     * Injects the ServerUrlHelper with the incoming request URI, and then invoke
     * the next middleware.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->helper->setUri($request->getUri());
        return $handler->handle($request);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Middleware/ErrorHandler.php
 
    /**
     * Middleware to handle errors and exceptions in layers it wraps.
     *
     * Adds an error handler that will convert PHP errors to ErrorException
     * instances.
     *
     * Internally, wraps the call to $next() in a try/catch block, catching
     * all PHP Throwables.
     *
     * When an exception is caught, an appropriate error response is created
     * and returned instead; otherwise, the response returned by $next is
     * used.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        set_error_handler($this->createErrorHandler());
 
        try {
            $response = $handler->handle($request);
        } catch (Throwable $e) {
            $response = $this->handleThrowable($e, $request);
        }
 
        restore_error_handler();
 
        return $response;
    }
 
    /**
     * Handles all throwables, generating and returning a response.
     *
     * Passes the error, request, and response prototype to createErrorResponse(),
     * triggers all listeners with the same arguments (but using the response
     * returned from createErrorResponse()), and then returns the response.
     */
    private function handleThrowable(Throwable $e, ServerRequestInterface $request) : ResponseInterface
    {
        $generator = $this->responseGenerator;
        $response = $generator($e, $request, ($this->responseFactory)());
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/los/basepath/src/BasePathMiddleware.php
    public const BASE_PATH = 'los-basepath';
 
    private string $basePath;
 
    private ?UrlHelper $urlHelper;
 
    public function __construct(string $basePath, ?UrlHelper $urlHelper)
    {
        $this->basePath  = $basePath;
        $this->urlHelper = $urlHelper;
    }
 
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $uri = $request->getUri();
 
        $path = $uri->getPath();
 
        if (empty($this->basePath) || strpos($path, $this->basePath) !== 0) {
            return $handler->handle($request);
        }
 
        $path = substr($path, strlen($this->basePath)) ?: '/';
 
        $request = $request->withUri($uri->withPath($path));
        $request = $request->withAttribute(self::BASE_PATH, $this->basePath . $path);
 
        if ($this->urlHelper instanceof UrlHelper) {
            $this->urlHelper->setBasePath($this->basePath);
        }
 
        return $handler->handle($request);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Middleware/LazyLoadingMiddleware.php
     * @var string
     */
    private $middlewareName;
 
    public function __construct(
        MiddlewareContainer $container,
        string $middlewareName
    ) {
        $this->container = $container;
        $this->middlewareName = $middlewareName;
    }
 
    /**
     * @throws InvalidMiddlewareException for invalid middleware types pulled
     *     from the container.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        $middleware = $this->container->get($this->middlewareName);
        return $middleware->process($request, $handler);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/Next.php
        $this->queue           = clone $queue;
        $this->fallbackHandler = $fallbackHandler;
    }
 
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        if ($this->queue === null) {
            throw MiddlewarePipeNextHandlerAlreadyCalledException::create();
        }
 
        if ($this->queue->isEmpty()) {
            $this->queue = null;
            return $this->fallbackHandler->handle($request);
        }
 
        $middleware = $this->queue->dequeue();
        $next = clone $this; // deep clone is not used intentionally
        $this->queue = null; // mark queue as processed at this nesting level
 
        return $middleware->process($request, $next);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php
     * If the pipeline is empty at the time this method is invoked, it will
     * raise an exception.
     *
     * @throws Exception\EmptyPipelineException if no middleware is present in
     *     the instance in order to process the request.
     */
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        return $this->process($request, new EmptyPipelineHandler(__CLASS__));
    }
 
    /**
     * PSR-15 middleware invocation.
     *
     * Executes the internal pipeline, passing $handler as the "final
     * handler" in cases when the pipeline exhausts itself.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        return (new Next($this->pipeline, $handler))->handle($request);
    }
 
    /**
     * Attach middleware to the pipeline.
     */
    public function pipe(MiddlewareInterface $middleware) : void
    {
        $this->pipeline->enqueue($middleware);
    }
}
 
/home/westerngreece/public_html/dv/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php
    }
 
    /**
     * Handle an incoming request.
     *
     * Attempts to handle an incoming request by doing the following:
     *
     * - Cloning itself, to produce a request handler.
     * - Dequeuing the first middleware in the cloned handler.
     * - Processing the first middleware using the request and the cloned handler.
     *
     * If the pipeline is empty at the time this method is invoked, it will
     * raise an exception.
     *
     * @throws Exception\EmptyPipelineException if no middleware is present in
     *     the instance in order to process the request.
     */
    public function handle(ServerRequestInterface $request) : ResponseInterface
    {
        return $this->process($request, new EmptyPipelineHandler(__CLASS__));
    }
 
    /**
     * PSR-15 middleware invocation.
     *
     * Executes the internal pipeline, passing $handler as the "final
     * handler" in cases when the pipeline exhausts itself.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        return (new Next($this->pipeline, $handler))->handle($request);
    }
 
    /**
     * Attach middleware to the pipeline.
     */
    public function pipe(MiddlewareInterface $middleware) : void
    {
        $this->pipeline->enqueue($middleware);
    }
/home/westerngreece/public_html/dv/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php
        $this->serverRequestErrorResponseGenerator =
            function (Throwable $exception) use ($serverRequestErrorResponseGenerator) : ResponseInterface {
                return $serverRequestErrorResponseGenerator($exception);
            };
    }
 
    /**
     * Run the application
     */
    public function run() : void
    {
        try {
            $request = ($this->serverRequestFactory)();
        } catch (Throwable $e) {
            // Error in generating the request
            $this->emitMarshalServerRequestException($e);
            return;
        }
 
        $response = $this->handler->handle($request);
 
        $this->emitter->emit($response);
    }
 
    private function emitMarshalServerRequestException(Throwable $exception) : void
    {
        $response = ($this->serverRequestErrorResponseGenerator)($exception);
        $this->emitter->emit($response);
    }
}
 
/home/westerngreece/public_html/dv/vendor/mezzio/mezzio/src/Application.php
        return $this->pipeline->handle($request);
    }
 
    /**
     * Proxies to composed pipeline to process.
     * {@inheritDocs}
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    {
        return $this->pipeline->process($request, $handler);
    }
 
    /**
     * Run the application.
     *
     * Proxies to the RequestHandlerRunner::run() method.
     */
    public function run() : void
    {
        $this->runner->run();
    }
 
    /**
     * Pipe middleware to the pipeline.
     *
     * If two arguments are present, they are passed to pipe(), after first
     * passing the second argument to the factory's prepare() method.
     *
     * If only one argument is presented, it is passed to the factory prepare()
     * method.
     *
     * The resulting middleware, in both cases, is piped to the pipeline.
     *
     * @param string|array|callable|MiddlewareInterface|RequestHandlerInterface $middlewareOrPath
     *     Either the middleware to pipe, or the path to segregate the $middleware
     *     by, via a PathMiddlewareDecorator.
     * @param null|string|array|callable|MiddlewareInterface|RequestHandlerInterface $middleware
     *     If present, middleware or request handler to segregate by the path
     *     specified in $middlewareOrPath.
     */
/home/westerngreece/public_html/dv/public/index.php
chdir(dirname(__DIR__));
require 'vendor/autoload.php';
 
/**
 * Self-called anonymous function that creates its own scope and keep the global namespace clean.
 */
(function () {
    /** @var \Psr\Container\ContainerInterface $container */
    $container = require 'config/container.php';
 
    /** @var \Mezzio\Application $app */
    $app = $container->get(\Mezzio\Application::class);
    $factory = $container->get(\Mezzio\MiddlewareFactory::class);
 
    // Execute programmatic/declarative middleware pipeline and routing
    // configuration statements
    (require 'config/pipeline.php')($app, $factory, $container);
    (require 'config/routes.php')($app, $factory, $container);
 
    $app->run();
})();
 
/home/westerngreece/public_html/dv/public/index.php
require 'vendor/autoload.php';
 
/**
 * Self-called anonymous function that creates its own scope and keep the global namespace clean.
 */
(function () {
    /** @var \Psr\Container\ContainerInterface $container */
    $container = require 'config/container.php';
 
    /** @var \Mezzio\Application $app */
    $app = $container->get(\Mezzio\Application::class);
    $factory = $container->get(\Mezzio\MiddlewareFactory::class);
 
    // Execute programmatic/declarative middleware pipeline and routing
    // configuration statements
    (require 'config/pipeline.php')($app, $factory, $container);
    (require 'config/routes.php')($app, $factory, $container);
 
    $app->run();
})();
 

Environment & details:

Key Value
HTTP Method GET
URI http://dv.westerngreece2021.gr/el_GR/page/1
Script /public/index.php
Headers Array ( [accept] => Array ( [0] => */* ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => dv.westerngreece2021.gr ) [user-agent] => Array ( [0] => claudebot ) )
Cookies Array ( )
Attributes Array ( )
Query String Arguments Array ( )
Body Params Array ( )
empty
empty
empty
empty
Key Value
__Laminas Array ( [_REQUEST_ACCESS_TIME] => 1710835028,2304 [_VALID] => Array ( [Laminas\Session\Validator\Id] => 3d889bc360dace3a35db14bfcb320042 ) )
slimFlash Array ( )
Key Value
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_HOST dv.westerngreece2021.gr
HTTP_USER_AGENT claudebot
REDIRECT_REDIRECT_UNIQUE_ID ZflFVDpkWpiPfpdvwKFXdgAAAVY
REDIRECT_REDIRECT_SCRIPT_URL /el_GR/page/1
REDIRECT_REDIRECT_SCRIPT_URI http://dv.westerngreece2021.gr/el_GR/page/1
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZflFVDpkWpiPfpdvwKFXdgAAAVY
REDIRECT_SCRIPT_URL /el_GR/page/1
REDIRECT_SCRIPT_URI http://dv.westerngreece2021.gr/el_GR/page/1
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_BASE /public/
REDIRECT_STATUS 200
UNIQUE_ID ZflFVDpkWpiPfpdvwKFXdgAAAVY
SCRIPT_URL /el_GR/page/1
SCRIPT_URI http://dv.westerngreece2021.gr/el_GR/page/1
HTTP_AUTHORIZATION
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME dv.westerngreece2021.gr
SERVER_ADDR 85.10.225.200
SERVER_PORT 80
REMOTE_ADDR 34.236.152.203
DOCUMENT_ROOT /home/westerngreece/public_html/dv
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/westerngreece/public_html/dv
SERVER_ADMIN webmaster@dv.westerngreece2021.gr
SCRIPT_FILENAME /home/westerngreece/public_html/dv/public/index.php
REMOTE_PORT 33650
REDIRECT_URL /public/el_GR/page/1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /el_GR/page/1
SCRIPT_NAME /public/index.php
PHP_SELF /public/index.php
REQUEST_TIME_FLOAT 1710835028,2104
REQUEST_TIME 1710835028
Key Value
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
0. Whoops\Handler\PrettyPageHandler