We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7712c24 commit be2bf62Copy full SHA for be2bf62
autoload.php
@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+// Autoload
4
+$files = [
5
+ __DIR__ . '/../../autoload.php',
6
+ __DIR__ . '/../vendor/autoload.php',
7
+ __DIR__ . '/vendor/autoload.php',
8
+];
9
+foreach ($files as $file) {
10
+ if (file_exists($file)) {
11
+ require_once $file;
12
+ break;
13
+ }
14
+}
conventional-changelog
@@ -4,18 +4,7 @@
use ConventionalChangelog\DefaultCommand;
use Symfony\Component\Console\Application;
-// Autoload
-$files = [
- __DIR__ . '/../../autoload.php',
- __DIR__ . '/../vendor/autoload.php',
- __DIR__ . '/vendor/autoload.php',
-];
-foreach ($files as $file) {
- if (file_exists($file)) {
15
- require_once $file;
16
- break;
17
- }
18
-}
+require_once __DIR__ . '/autoload.php';
19
20
// Report only fatal errors
21
error_reporting(2039);
0 commit comments