Skip to content

Commit

Permalink
Use static not self
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejohns committed Oct 7, 2016
1 parent da88c7e commit 9f4b0bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Config.php
Expand Up @@ -79,24 +79,24 @@ public function __construct(array $globals = null)
*/
public function define(Container $di)
{
if (! isset($di->values[self::GLOBALS])) {
$di->values[self::GLOBALS] = $this->globals;
if (! isset($di->values[static::GLOBALS])) {
$di->values[static::GLOBALS] = $this->globals;
}

$di->set(self::FACTORY, $di->lazyNew(Factory::class));
$di->set(static::FACTORY, $di->lazyNew(Factory::class));

$di->set(
self::CONTEXT,
static::CONTEXT,
$di->lazyGetCall(
self::FACTORY,
static::FACTORY,
'newContext',
$di->lazyValue(self::GLOBALS)
$di->lazyValue(static::GLOBALS)
)
);

$di->set(
self::STDIO,
$di->lazyGetCall(self::FACTORY, 'newStdio')
static::STDIO,
$di->lazyGetCall(static::FACTORY, 'newStdio')
);

$di->params[Help::class]
Expand Down

0 comments on commit 9f4b0bc

Please sign in to comment.