for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Http Adapter package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\HttpAdapter;
/**
* @author GeLo <[email protected]>
class FileGetContentsHttpAdapter extends AbstractStreamHttpAdapter
{
* {@inheritdoc}
public function getName()
return 'file_get_contents';
}
protected function process($uri, $context)
$http_response_header = [];
return [@file_get_contents($uri, false, $context), $http_response_header];