diff --git a/CHANGES.md b/CHANGES.md index a5bb842..5b6c24f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Changelog # +## v4.3.0 (2015-01-08) ## + + * Introduced ClassFinder for handling class file searching operations. + * Reduced overall code complexity. + ## v4.2.0 (2015-01-01) ## * ClassLoader::findFile now does a better job of canonizing directory separators diff --git a/README.md b/README.md index 1ce1f6f..02bfe68 100644 --- a/README.md +++ b/README.md @@ -56,9 +56,13 @@ Alternatively, you can add the dependency to your `composer.json` and run } ``` -If you installed the library via Composer. You can load the library by including -the `vendor/autoload.php` file. If you do not want to use Composer, you can -download the latest release and include the `src/autoload.php` file instead. +Library that has been installed via Composer can be loaded by including the +`vendor/autoload.php` file that was generated by Composer. + +It is also possible to install this library manually. To do this, download the +[latest release](https://github.com/Riimu/Kit-ClassLoader/releases/latest) and +extract the `src` folder to your project folder. To load the library, include +the provided `src/autoload.php` file. ## Usage ## diff --git a/src/FileFinder.php b/src/ClassFinder.php similarity index 98% rename from src/FileFinder.php rename to src/ClassFinder.php index e3cb351..e1e5aec 100644 --- a/src/FileFinder.php +++ b/src/ClassFinder.php @@ -3,12 +3,12 @@ namespace Riimu\Kit\ClassLoader; /** - * Class for finding class files. + * Provides method for searching class files in the file system. * @author Riikka Kalliomäki * @copyright Copyright (c) 2015, Riikka Kalliomäki * @license http://opensource.org/licenses/mit-license.php MIT License */ -class FileFinder +class ClassFinder { /** @var string[] List of file extensions used to find files */ private $fileExtensions; diff --git a/src/ClassLoader.php b/src/ClassLoader.php index 808cdfd..e85934b 100644 --- a/src/ClassLoader.php +++ b/src/ClassLoader.php @@ -41,7 +41,7 @@ class ClassLoader /** @var callable The autoload method used to load classes */ private $loader; - /** @var \Riimu\Kit\ClassLoader\FileFinder Finder used to find class files */ + /** @var \Riimu\Kit\ClassLoader\ClassFinder Finder used to find class files */ private $finder; /** @var boolean Whether loadClass should return values and throw exceptions or not */ @@ -57,7 +57,7 @@ public function __construct() $this->useIncludePath = false; $this->verbose = true; $this->loader = [$this, 'loadClass']; - $this->finder = new FileFinder(); + $this->finder = new ClassFinder(); } /**