init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace AppBundle\Controller;
|
||||
|
||||
|
||||
use AppBundle\Util;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class ImageController extends Controller
|
||||
{
|
||||
public function showAction()
|
||||
{
|
||||
|
||||
$path = Util::getRootDir();
|
||||
$path .= 'web/images/placeholder-image.png';
|
||||
$image_name = 'placeholder-image.png';
|
||||
|
||||
|
||||
$file = file_get_contents($path);
|
||||
$headers = array('Content-Type' => 'image/jpeg',
|
||||
'Content-Disposition' => 'inline; filename="' . $image_name . '"');
|
||||
|
||||
|
||||
|
||||
|
||||
//return 'data:image/image/jpeg;base64,'.base64_encode($file);
|
||||
|
||||
return new Response($file, 200, $headers);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue