AwsModule\Factory\CloudFrontLinkViewHelperFactory::__invoke PHP Метод

__invoke() публичный Метод

public __invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : AwsModule\View\Helper\CloudFrontLink
$container Interop\Container\ContainerInterface
$requestedName string
$options array
Результат AwsModule\View\Helper\CloudFrontLink
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        /** @var AwsSdk $awsSdk */
        $awsSdk = $container->get(AwsSdk::class);
        return new CloudFrontLink($awsSdk->createCloudFront());
    }
CloudFrontLinkViewHelperFactory