1
0
mirror of https://github.com/danog/class-finder.git synced 2025-01-23 06:11:26 +01:00

Bootstrap classmap files

This commit is contained in:
Hayden Pierce 2018-09-08 10:40:19 -05:00
parent 5772bca25d
commit 67831937e3
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?php
namespace HaydenPierce\ClassFinder\Classmap;
use HaydenPierce\ClassFinder\Exception\ClassFinderException;
class ClassmapEntry
{
private $namespace;
private $directories;
public function __construct($namespace, $directories)
{
$this->namespace = $namespace;
$this->directories = $directories;
}
}

View File

@ -0,0 +1,24 @@
<?php
namespace HaydenPierce\ClassFinder\Classmap;
use HaydenPierce\ClassFinder\AppConfig;
use HaydenPierce\ClassFinder\Exception\ClassFinderException;
class ClassmapEntryFactory
{
/** @var AppConfig */
private $appConfig;
public function __construct(AppConfig $appConfig)
{
$this->appConfig = $appConfig;
}
/**
* @return array
*/
public function getClassmapEntries()
{
}
}

View File

@ -0,0 +1,24 @@
<?php
namespace HaydenPierce\ClassFinder\Classmap;
use HaydenPierce\ClassFinder\FinderInterface;
class ClassmapFinder implements FinderInterface
{
private $factory;
public function __construct(ClassmapEntryFactory $factory)
{
$this->factory = $factory;
}
/**
* @param $namespace
* @return bool|string
* @throws ClassFinderException
*/
public function findClasses($namespace)
{
}
}