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:
parent
5772bca25d
commit
67831937e3
16
src/Classmap/ClassmapEntry.php
Normal file
16
src/Classmap/ClassmapEntry.php
Normal 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;
|
||||
}
|
||||
}
|
24
src/Classmap/ClassmapEntryFactory.php
Normal file
24
src/Classmap/ClassmapEntryFactory.php
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
24
src/Classmap/ClassmapFinder.php
Normal file
24
src/Classmap/ClassmapFinder.php
Normal 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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user