AwsModule\Factory\CloudFrontLinkViewHelperFactory::__invoke PHP Method

__invoke() public method

public __invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : AwsModule\View\Helper\CloudFrontLink
$container Interop\Container\ContainerInterface
$requestedName string
$options array
return 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