1
0
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:
Marc Alexander
2022-12-26 14:55:23 +01:00
parent 077ceba2a9
commit 60c165c3d0
13 changed files with 20 additions and 43 deletions

View File

@@ -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']);

View File

@@ -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);

View 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)

View File

@@ -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