Optimized Attributes and tests for it

This commit is contained in:
Kevin Frantz
2019-02-07 13:14:55 +01:00
parent f85b0118a7
commit 25e63d4983
13 changed files with 245 additions and 11 deletions

View File

@@ -53,6 +53,9 @@ final class FixtureSourceFactory implements FixtureSourceFactoryInterface
return $objects;
}
/**
* @return array
*/
public static function getAllFixtureSources(): array
{
$unfilteredClasses = self::getAllClassesInSourceFixtureNamespace();

View File

@@ -41,6 +41,8 @@ Checks if the crud, layer and source combination is granted by a right.
### Right Layer Combination Service ###
Allows to get the possible cruds for a layer, or the possible layers for a crud.
## Source Management
### Source Class Information Service ###
Offers to get all source classes, or source classes by a namespace.
### Source Member Information ###
Offers to get all source members over all dimensions.
### Source Member Manager

View File

@@ -75,7 +75,7 @@ final class SourceClassInformationService implements SourceClassInformationServi
$this->allClasses[] = $this->transformPathToClass($path);
}
private function loadClasses()
private function loadClasses(): void
{
$recursiveDirectoryIterator = new \RecursiveDirectoryIterator(self::FOLDER);
$files = new \RecursiveIteratorIterator($recursiveDirectoryIterator, \RecursiveIteratorIterator::SELF_FIRST);