/** @var \Friendica\Core\Addon\Capabilities\ICanLoadAddons $addonLoader */
$addonLoader = $dice->create(\Friendica\Core\Addon\Capabilities\ICanLoadAddons::class);
$dice = $dice->addRules($addonLoader->getActiveAddonConfig('dependencies'));
-$dice = $dice->addRule(LoggerInterface::class,['constructParams' => [Logger\Capabilities\LogChannel::DAEMON]]);
+$dice = $dice->addRule(LoggerInterface::class, ['constructParams' => [Logger\Capabilities\LogChannel::DAEMON]]);
DI::init($dice);
\Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class));
/** @var \Friendica\Core\Addon\Capabilities\ICanLoadAddons $addonLoader */
$addonLoader = $dice->create(\Friendica\Core\Addon\Capabilities\ICanLoadAddons::class);
$dice = $dice->addRules($addonLoader->getActiveAddonConfig('dependencies'));
-$dice = $dice->addRule(LoggerInterface::class,['constructParams' => [LogChannel::WORKER]]);
+$dice = $dice->addRule(LoggerInterface::class, ['constructParams' => [LogChannel::WORKER]]);
DI::init($dice);
\Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class));
*/
class AddonInvalidConfigFileException extends \RuntimeException
{
- public function __construct($message = "", $code = 0, Throwable $previous = null)
+ public function __construct($message = '', $code = 0, Throwable $previous = null)
{
parent::__construct($message, 500, $previous);
}
class HookConfigException extends \RuntimeException
{
- public function __construct($message = "", \Throwable $previous = null)
+ public function __construct($message = '', \Throwable $previous = null)
{
parent::__construct($message, 500, $previous);
}
*/
class LogLevelException extends \InvalidArgumentException
{
- public function __construct($message = "", Throwable $previous = null)
+ public function __construct($message = '', Throwable $previous = null)
{
parent::__construct($message, 500, $previous);
}
*/
class LoggerArgumentException extends \InvalidArgumentException
{
- public function __construct($message = "", Throwable $previous = null)
+ public function __construct($message = '', Throwable $previous = null)
{
parent::__construct($message, 500, $previous);
}
*/
class LoggerException extends \Exception
{
- public function __construct($message = "", Throwable $previous = null)
+ public function __construct($message = '', Throwable $previous = null)
{
parent::__construct($message, 500, $previous);
}
*/
class LoggerUnusableException extends \RuntimeException
{
- public function __construct($message = "", Throwable $previous = null)
+ public function __construct($message = '', Throwable $previous = null)
{
parent::__construct($message, 500, $previous);
}
return LogLevel::INFO;
// legacy DATA
case "4":
- // legacy ALL
+ // legacy ALL
case "5":
return LogLevel::DEBUG;
// default if nothing set