Skip to content

Commit

Permalink
#2321 - Move out autoload.php from Library/ into config/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Nov 21, 2021
1 parent e0e0cc0 commit d842d4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Library/autoload.php → config/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* the LICENSE file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Zephir;

use const PHP_BINARY;
Expand Down Expand Up @@ -51,7 +53,7 @@
}
}

if (false == class_exists('Composer\Autoload\ClassLoader', false)) {
if (!class_exists('Composer\Autoload\ClassLoader', false)) {
fwrite(STDERR, 'Unable to find the Composer autoloader.'.PHP_EOL);

exit(1);
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="Library/autoload.php"
bootstrap="config/autoload.php"
colors="true"
verbose="true"
>
Expand Down
2 changes: 1 addition & 1 deletion tests/ext-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* the LICENSE file that was distributed with this source code.
*/

require_once __DIR__.'/../Library/autoload.php';
require_once __DIR__.'/../config/autoload.php';

if (!extension_loaded('phalcon')) {
include_once __DIR__.'/../prototypes/phalcon.php';
Expand Down
2 changes: 1 addition & 1 deletion zephir
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use Zephir\Parser\Parser;

$rootPath = realpath(dirname(__FILE__));

require $rootPath.'/Library/autoload.php';
require $rootPath.'/config/autoload.php';

set_error_handler(static function ($code, $message, $file = '', $line = -1) {
if (error_reporting() & $code) {
Expand Down

0 comments on commit d842d4b

Please sign in to comment.