mirror of
https://github.com/friendica/friendica
synced 2025-01-31 22:19:47 +00:00
Remove default logchannel from Container::setup()
This commit is contained in:
parent
f40fb6b099
commit
870b3b9a1c
2 changed files with 2 additions and 5 deletions
|
@ -9,8 +9,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Friendica\Core;
|
namespace Friendica\Core;
|
||||||
|
|
||||||
use Friendica\Core\Logger\Capability\LogChannel;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dependency Injection Container
|
* Dependency Injection Container
|
||||||
*/
|
*/
|
||||||
|
@ -25,7 +23,7 @@ interface Container
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setup(string $logChannel = LogChannel::DEFAULT): void;
|
public function setup(string $logChannel): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a fully constructed object based on $name using $args and $share as constructor arguments if supplied
|
* Returns a fully constructed object based on $name using $args and $share as constructor arguments if supplied
|
||||||
|
|
|
@ -10,7 +10,6 @@ declare(strict_types=1);
|
||||||
namespace Friendica\Core;
|
namespace Friendica\Core;
|
||||||
|
|
||||||
use Dice\Dice;
|
use Dice\Dice;
|
||||||
use Friendica\Core\Logger\Capability\LogChannel;
|
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
|
@ -44,7 +43,7 @@ final class DiceContainer implements Container
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setup(string $logChannel = LogChannel::DEFAULT): void
|
public function setup(string $logChannel): void
|
||||||
{
|
{
|
||||||
$this->setupContainerForLogger($logChannel);
|
$this->setupContainerForLogger($logChannel);
|
||||||
$this->setupLegacyServiceLocator();
|
$this->setupLegacyServiceLocator();
|
||||||
|
|
Loading…
Add table
Reference in a new issue