src/mako/application/services/LoggerService.php
protected function getContext(): array
	{
		if($this->app->isCommandLine() === false && $this->container->has(Gatekeeper::class))
		{
			$user = $this->container->get(Gatekeeper::class)->getUser();

			return ['user_id' => $user !== null ? $user->getId() : null];
		}

		return [];
	}
protected function getContext(): array
	{
		if($this->app->isCommandLine() === false && $this->container->has(Gatekeeper::class))
		{
			$user = $this->container->get(Gatekeeper::class)->getUser();

			return ['user_id' => $user !== null ? $user->getId() : null];
		}

		return [];
	}
protected function getContext ( ) : array { if ( $ this -> app -> isCommandLine ( ) === false && $ this -> container -> has ( Gatekeeper :: class ) ) { $ user = $ this -> container -> get ( Gatekeeper :: class ) -> getUser ( ) ; return [ 'user_id' => $ user !== null ? $ user -> getId ( ) : null ] ; } return [ ] ; }
Get global logger context.

@return array
Get global logger context .