Implemented changes for 1.2.0-RC5

This commit is contained in:
Abel Hoogeveen 2019-09-17 23:54:14 +02:00
parent be915fa98a
commit 8d9d790b7e
No known key found for this signature in database
GPG Key ID: 96C2234920BF4292
3 changed files with 0 additions and 11 deletions

View File

@ -403,9 +403,7 @@ class Configurator
{
Logger::logDebug("Adding directories for '" . $component . "'");
if (method_exists($container->{$component}, 'setDirectories'))
{
$container->{$component}->setDirectories($priorityArray);
}
}
$container->initFactory();

View File

@ -115,9 +115,7 @@ class Plugins
// If directory does not exist, skip it
if (!file_exists($pluginPath) || !is_dir($pluginPath))
{
continue;
}
// Fetch the contents of the path
$pluginPathContents = array_diff(scandir($pluginPath), array('..', '.'));
@ -126,9 +124,7 @@ class Plugins
foreach ($pluginPathContents as $pluginFolder) {
// @codeCoverageIgnoreStart
if (!is_dir($pluginPath . DS . $pluginFolder))
{
continue;
}
// @codeCoverageIgnoreEnd
// If a header file exists, use it
@ -141,9 +137,7 @@ class Plugins
require_once($file);
$header = new $className();
if (!$header instanceof iPluginHeader)
{
continue;
}
// Load the header
$this->loadHeader($header);
@ -249,7 +243,6 @@ class Plugins
$prefix = $header->getClassesPrefix();
$filePath = dirname($headerReflection->getFileName()) . (!empty($header->getSourceDirectory()) ? DS . $header->getSourceDirectory() : '');
$pluginClass = $header->getPluginClass();
if (!is_null($prefix) && !is_null($filePath))
{
try {

View File

@ -34,10 +34,8 @@
* @version Version 1.2.0
*/
namespace FuzeWorks;
interface iComponent
{
public function getName(): string;