<?php
namespace Claromentis\Core\REST;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] ?: array()) + array("_cc9c34dd23bae23036a82f1" . "f9662ac52" => base64_decode("ZGVidW" . "c="), "_e57541d732d72dc01c88f3809" . "f7713c9" => base64_decode("cmVzdC5mb3JtYX" . "R0ZXI="), "_b5a4acee5ed1d4c4b46" . "bc4dbf66e69e5" => base64_decode("cmVzdC" . "5sb2dn" . "ZXI="), "co" . "nf" . "ig" => base64_decode("Y29" . "uZm" . "ln"), "_04c851ced65682f1411090dee" . "7ada43b" => base64_decode("cmVzdA" . "=="), "_382565d7ef9f3acca1cb51b96af" . "efa43" => base64_decode("cmVzdC52ZXJzaW9uX2xpc3RlbmV" . "y"), "_1ab9364741e" . "2bcd03901008" . "60f733720" => base64_decode("c3lzdGVtTmF" . "tZQ=="), "_0ea5e075a" . "070d26c1e4" . "18a95cfdc4" . "e9a" => base64_decode("cmVzdC5leGNlcHRpb25fbGlzdGVu" . "ZXI="));
use Claromentis\Core\Application;
use Claromentis\Core\Http\HttpUtil;
use Claromentis\Core\Log;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use RestFormat;
use Silex\Api\EventListenerProviderInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;




class RestServiceProvider implements ServiceProviderInterface, EventListenerProviderInterface
{
    
    
    
    
    
    
    
    
    
    public function register(Container $app)
    {
        $app[$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_382565d7ef9f3acca" . "1cb51b96afefa43"]] = function () {
            return new RestVersionListener();
        };
        $app[$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_0ea5e075a070d26c1e418a95cf" . "dc4e9a"]] = function ($app) {
            
            
            return new RestExceptionListener($app[Log\Util::class], $app->GetLogger($GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_04c851ced65682f1411090" . "dee7ada43b"]), $app[$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_cc9c34dd23bae23036a82f1f9662ac5" . "2"]], $app[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["co" . "nf" . "ig"]][$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_1ab9364741e2bcd0390100860f73" . "3720"]]);
        };
        $app[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_e57541d732d7" . "2dc01c88f3809" . "f7713c9"]] = function ($app) {
            return new RestFormatter($app[UrlGeneratorInterface::class], $app[HttpUtil::class]);
        };
        $app[RestFormat::class] = $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_e57541d732d72dc01" . "c88f3809f7713c9"];
        $app[RestFormatter::class] = $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_e57541d732d72dc01c88f3" . "809f7713c9"];
        $app[$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_b5a4acee5ed1d4c4b46bc4d" . "bf66e69e5"]] = function ($app) {
            
            
            return $app->GetLogger($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_04c851ced656" . "82f1411090dee" . "7ada43b"]);
        };
    }
    public function subscribe(Container $app, EventDispatcherInterface $dispatcher)
    {
        $dispatcher->addSubscriber($app[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_382565d7ef9f3acca1cb51b96a" . "fefa43"]]);
        $dispatcher->addSubscriber($app[$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_0ea5e075a070d26c1e418a95cfdc" . "4e9a"]]);
    }
}