Constructor.
LoaderInterface $loader A LoaderInterface instance:
mixed $resource The main resource to load:
array $options An array of options:
RequestContext $context The context:
LoggerInterface $logger A logger instance:
public function __construct(LoaderInterface $loader, $resource, array $options = array(), RequestContext $context = null, LoggerInterface $logger = null) {
$this->loader = $loader;
$this->resource = $resource;
$this->logger = $logger;
$this->context = null === $context ? new RequestContext() : $context;
$this
->setOptions($options);
}