/**
  * @return string[]
  */
 protected function getRepositoryNames()
 {
     $keys = $this->container->idsByPrefix('repository');
     $mapper = function ($key) {
         return explode('.', $key)[1];
     };
     return array_values(array_map($mapper, $keys));
 }
Пример #2
0
 /**
  * The providers are not loaded by default.
  */
 protected function registerContainerProviders()
 {
     $this->container->register(new ApplicationServiceProvider());
     $this->container->register(new RepositoryServiceProvider());
 }