<?php
namespace Claromentis\Core\Application;

$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"] = (@$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] ?: array()) + array();
use Claromentis\Core\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;




class ServiceArgumentResolver implements ArgumentValueResolverInterface
{
    
    
    
    
    protected $app;
    
    
    
    
    
    
    public function __construct(Application $app)
    {
        $this->app = $app;
    }
    public function supports(Request $request, ArgumentMetadata $argument)
    {
        return $this->app->offsetExists($argument->getType());
    }
    public function resolve(Request $request, ArgumentMetadata $argument)
    {
        (yield $this->app[$argument->getType()]);
    }
}