예제 #1
0
 /**
  * @return Container
  */
 public static function forge()
 {
     $container = new \League\Container\Container();
     $container->delegate(new ReflectionContainer());
     return new self($container);
 }
예제 #2
0
<?php

$container = new League\Container\Container();
$container->delegate(new League\Container\ReflectionContainer());
$container->addServiceProvider(Demo7\Support\AuthenticationServiceProvider::class);
$container->addServiceProvider(Demo7\Support\RouterServiceProvider::class);
return $container;