Line 16 | Line 16 |
---|
use phpbb\auth\auth; use phpbb\config\config; use phpbb\db\driver\driver_interface;
|
use phpbb\auth\auth; use phpbb\config\config; use phpbb\db\driver\driver_interface;
|
use \phpbb\event\dispatcher_interface;
| use phpbb\event\dispatcher_interface;
|
use phpbb\exception\http_exception; use phpbb\feed\feed_interface; use phpbb\feed\exception\feed_unavailable_exception;
| use phpbb\exception\http_exception; use phpbb\feed\feed_interface; use phpbb\feed\exception\feed_unavailable_exception;
|
Line 28 | Line 28 |
---|
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
| use Twig\Environment;
|
class feed { /**
|
class feed { /**
|
* @var \Twig_Environment
| * @var Environment
|
*/ protected $template;
| */ protected $template;
|
Line 89 | Line 90 |
---|
/** * Constructor *
|
/** * Constructor *
|
* @param \Twig_Environment $twig
| * @param Environment $twig
|
* @param symfony_request $request * @param controller_helper $controller_helper * @param config $config
| * @param symfony_request $request * @param controller_helper $controller_helper * @param config $config
|
Line 101 | Line 102 |
---|
* @param dispatcher_interface $phpbb_dispatcher * @param string $php_ext */
|
* @param dispatcher_interface $phpbb_dispatcher * @param string $php_ext */
|
public function __construct(\Twig_Environment $twig, symfony_request $request, controller_helper $controller_helper, config $config, driver_interface $db, ContainerInterface $container, feed_helper $feed_helper, user $user, auth $auth, dispatcher_interface $phpbb_dispatcher, $php_ext)
| public function __construct(Environment $twig, symfony_request $request, controller_helper $controller_helper, config $config, driver_interface $db, ContainerInterface $container, feed_helper $feed_helper, user $user, auth $auth, dispatcher_interface $phpbb_dispatcher, $php_ext)
|
{ $this->request = $request; $this->controller_helper = $controller_helper;
| { $this->request = $request; $this->controller_helper = $controller_helper;
|
Line 385 | Line 386 |
---|
));
$response = new Response($content);
|
));
$response = new Response($content);
|
$response->headers->set('Content-Type', 'application/atom+xml'); $response->setCharset('UTF-8');
| $response->headers->set('Content-Type', 'application/atom+xml; charset=UTF-8');
|
$response->setLastModified(new \DateTime('@' . $feed_updated_time));
if (!empty($this->user->data['is_bot']))
| $response->setLastModified(new \DateTime('@' . $feed_updated_time));
if (!empty($this->user->data['is_bot']))
|