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