Skip to content

Commit df34897

Browse files
siwinskiremicollet
authored andcommitted
Remove self-autoload constant (#11)
* Remove self-autoload constant * Do not prepend self-autoload PSR-4 register
1 parent acadcf9 commit df34897

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/autoload.php

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
if (!defined('FEDORA_AUTOLOADER')) {
11-
if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
12-
require_once __DIR__.'/Autoload.php';
13-
}
14-
15-
if (!function_exists('Fedora\\Autoloader\\requireFile')) {
16-
require_once __DIR__.'/functions.php';
17-
}
18-
19-
\Fedora\Autoloader\Autoload::addPsr4('Fedora\\Autoloader\\', __DIR__);
10+
if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
11+
require_once __DIR__.'/Autoload.php';
12+
}
2013

21-
define('FEDORA_AUTOLOADER', true);
14+
if (!function_exists('Fedora\\Autoloader\\requireFile')) {
15+
require_once __DIR__.'/functions.php';
2216
}
17+
18+
\Fedora\Autoloader\Autoload::addPsr4('Fedora\\Autoloader\\', __DIR__);

0 commit comments

Comments
 (0)