<?php
namespace Claromentis\Core\Http;

$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"] ?: array()) + array("_dd3505c0" . "fb72254aa" . "fb34cbf8c" . "193a74" => base64_decode("Y2ZnX3N5c3RlbV91cm" . "xfZW5mb3JjZQ=="), "_bfaf8283d" . "8225dbad70" . "8867ff4968" . "f32" => base64_decode("aHR0cC5jYW5vbmljYWxfcmVkaX" . "JlY3Rvcg=="), "_4d707fab93bebb00bbe" . "69e8159697c90" => base64_decode(""), "_ed1fc297f5b0b6cdc3986386578ed" . "c3e" => base64_decode("Y2ZnX" . "3N5c3" . "RlbV9" . "1cmw="));
use Claromentis\Core\Application;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Silex\Api\EventListenerProviderInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class CanonicalUrlService implements ServiceProviderInterface, EventListenerProviderInterface
{
    public function register(Container $app)
    {
        $app[$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_bfaf8283" . "d8225dbad" . "708867ff4" . "968f32"]] = function ($app) {
            
            
            $_c927258f5322288a992c77be40ae0b53 = $app->config->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_dd3505c0fb72254aafb34cbf8" . "c193a74"]) ? $app->config[$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_ed1fc297f5" . "b0b6cdc3986" . "386578edc3e"]] : $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_4d707fab93bebb0" . "0bbe69e8159697c9" . "0"];
            return new CanonicalUrlRedirector($_c927258f5322288a992c77be40ae0b53);
        };
    }
    public function subscribe(Container $app, EventDispatcherInterface $dispatcher)
    {
        $dispatcher->addSubscriber($app[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_bfaf8283d8225dbad708867f" . "f4968f32"]]);
    }
}