mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16955] Clean up storage and template classes
PHPBB3-16955
This commit is contained in:
@@ -278,7 +278,7 @@ class attachment extends controller
|
||||
$response->headers->set('Content-Disposition', $disposition);
|
||||
|
||||
// Set expires header for browser cache
|
||||
$time = new \Datetime();
|
||||
$time = new \DateTime();
|
||||
$response->setExpires($time->modify('+1 year'));
|
||||
|
||||
return parent::handle($attachment['physical_filename']);
|
||||
|
@@ -107,7 +107,7 @@ class avatar extends controller
|
||||
|
||||
$response->headers->set('Content-Disposition', $disposition);
|
||||
|
||||
$time = new \Datetime();
|
||||
$time = new \DateTime();
|
||||
$response->setExpires($time->modify('+1 year'));
|
||||
|
||||
parent::prepare($response, $file);
|
||||
|
@@ -43,7 +43,7 @@ class file_info
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param \Symfony\Component\DependencyInjection\ContainerInterface $adapter
|
||||
* @param adapter_interface $adapter
|
||||
* @param string $path
|
||||
*/
|
||||
public function __construct(adapter_interface $adapter, $path)
|
||||
|
@@ -403,7 +403,7 @@ class storage
|
||||
*
|
||||
* @param string $path The file
|
||||
*
|
||||
* @throws \phpbb\storage\exception\not_implemented When the adapter doesnt implement the method
|
||||
* @throws \phpbb\storage\exception\exception When the adapter doesnt implement the method
|
||||
* When the file doesn't exist
|
||||
*
|
||||
* @return \phpbb\storage\file_info Returns file_info object
|
||||
|
Reference in New Issue
Block a user