*/ protected array $config = [ 'depends' => null, ]; /** * @return array */ public function _depends(): array { return [Symfony::class => $this->dependencyMessage]; } public function _inject(Symfony $symfony): void { $this->symfony = $symfony; } /** * Executed before suite. * * Persist Blameable listener as permanent service to fix issue where user is null when blameable is called * * @param array $settings */ public function _beforeSuite(array $settings = []): void { parent::_beforeSuite($settings); $this->symfony->persistPermanentService('stof_doctrine_extensions.listener.blameable'); } }