<?php
namespace Claromentis\Core\CustomCode;

$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] = (@$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"] ?: array()) + array("_a2af087873c2b9" . "5ce1328bcab0011" . "4b7" => base64_decode("dGVtcGxhdGVyLnVpLmN1c" . "3RvbV9jb2Rl"), "_f2a2aa78dcc887478def97719a502" . "740" => base64_decode("Y3VzdG9tX2N" . "vZGVfcmVwb3" . "NpdG9yeQ=="));
use Claromentis\Core\Application;
use Claromentis\Core\Event\LazyResolver;
use Claromentis\Core\Widget\CustomCode;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Silex\Api\EventListenerProviderInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class CustomCodeServiceProvider implements ServiceProviderInterface, EventListenerProviderInterface
{
    public function register(Container $app)
    {
        $app[$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_a2af087873" . "c2b95ce1328" . "bcab00114b7"]] = CustomCode::class;
        $app[$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_f2a2aa78d" . "cc887478de" . "f97719a502" . "740"]] = function ($app) {
            return new CustomCodeRepository($app->db);
        };
        $app[CustomCodeRepository::class] = $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_f2a2aa78dcc887478def97719a50274" . "0"];
        $app[CustomCodeRenderSubscriber::class] = function (Application $app) {
            return $app->create(CustomCodeRenderSubscriber::class);
        };
    }
    public function subscribe(Container $app, EventDispatcherInterface $dispatcher)
    {
        (new LazyResolver($app, CustomCodeRenderSubscriber::class, CustomCodeRenderSubscriber::getSubscribedEvents()))->subscribe($dispatcher);
    }
}