Exemplo n.º 1
0
 /**
  * Bind declared bindings.
  *
  * @param ContainerInterface $container
  * @param array              $bootSchema
  */
 protected function initBindings(ContainerInterface $container, array $bootSchema)
 {
     foreach ($bootSchema['bindings'] as $aliases => $resolver) {
         $container->bind($aliases, $resolver);
     }
     foreach ($bootSchema['singletons'] as $aliases => $resolver) {
         $container->bindSingleton($aliases, $resolver);
     }
 }