Browse Source

Fix composer installation autoload discovery

tags/1.0.1
Anton Smirnov 7 months ago
parent
commit
05a4cd0fdd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bin/encryptor

+ 2
- 2
bin/encryptor View File

@@ -13,8 +13,8 @@ if (!extension_loaded('sodium')) {

if (file_exists(__DIR__.'/../vendor/autoload.php')) {
require __DIR__ . '/../vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
require __DIR__ . '/../../../vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../../../autoload.php')) {
require __DIR__ . '/../../../autoload.php';
} else {
echo 'You must set up the project dependencies using `composer install`' . PHP_EOL.
'See https://getcomposer.org/download/ for instructions on installing Composer' . PHP_EOL;


Loading…
Cancel
Save