Файл services.yml:
Код: Выделить всё
services:
nameUser.nameExt.listener:
class: nameUser\nameExt\event\listener
arguments:
- @template
- @request
- @user
tags:
- { name: event.listener }Код: Выделить всё
<?php
namespace nameUser\nameExt\event;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class listener implements EventSubscriberInterface
{
protected $template;
protected $request;
protected $user;
public function __construct(
\phpbb\template\template $template,
\phpbb\request\request $request,
\phpbb\user $user
)
{
$this->template = $template;
$this->request = $request;
$this->user = $user;
}
// Другие функции ...
}$this->user существует, но массив $this->user->data пуст...Описание проблемы: Пустой массив $this->user->data
Произведенные изменения, после которых начались неполадки: Написание нового расширение.
Версия phpBB: 3.2.8
Используемые стили: Просильвер
Используемые расширения: Antibot 42, Convert Local Url To Link Name, Double Account Preventer, Empennage: add code and content to the top/bottom of pages, External Links, Images from posts, Newest members, phpBB3 SEO Sitemap, Posts merging, QuickReply Reloaded, Recent Topics, Responsive Navbar Menu, SEO Topic & Canonical URL, Thanks for posts, Who was here (light)
Версия PHP:: 7.2
Используемая СУБД и её версия: MySQL 5.6
Подскажите, куда копать, чтобы массив имел данные?
Благодарю.


