<?php
namespace Claromentis\Core\Application;

$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"] = (@$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] ?: 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()]);
    }
}