Skip to content

Commit

Permalink
upgrade resource build script to use vendor-bin autoloaders
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed May 2, 2024
1 parent af5de01 commit 114c51b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions resources/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@

require_once dirname(__DIR__) . '/vendor/autoload.php';
require_once dirname(__DIR__) . '/vendor-bin/umlwriter/vendor/autoload.php';

$phpcsAutoloader = Composer\InstalledVersions::getInstallPath(
'squizlabs/php_codesniffer'
) . '/autoload.php';
require_once $phpcsAutoloader;
require_once dirname(__DIR__) . '/vendor-bin/phpcs/vendor/squizlabs/php_codesniffer/autoload.php';
require_once dirname(__DIR__) . '/vendor-bin/phpstan/vendor/autoload.php';

$script = $_SERVER['argv'][1] ?? null;
$folder = $_SERVER['argv'][2] ?? sys_get_temp_dir();
Expand Down

0 comments on commit 114c51b

Please sign in to comment.