Skip to content

Commit 29cdea4

Browse files
Michael Vasseurvmcj
authored andcommitted
Change the location in various files
1 parent 2dcb4fd commit 29cdea4

File tree

10 files changed

+16
-15
lines changed

10 files changed

+16
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The M4 autoconf macros are licensed under all-permissive and GPL3+
7272
licences; see the respective files under m4/ for details.
7373

7474
The DOMjudge tarball ships external library dependencies in the
75-
lib/vendor directory. These are covered by their individual licenses
75+
webapp/vendor directory. These are covered by their individual licenses
7676
as specified in the file composer.lock.
7777

7878
Contact

etc/domserver-static.php.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ define('ETCDIR', '@domserver_etcdir@');
1212
define('WEBAPPDIR', '@domserver_webappdir@');
1313
define('LIBDIR', '@domserver_libdir@');
1414
define('SQLDIR', '@domserver_sqldir@');
15+
define('VENDORDIR', '@domserver_webappdir@/vendor');
1516
define('LOGDIR', '@domserver_logdir@');
1617
define('RUNDIR', '@domserver_rundir@');
1718
define('TMPDIR', '@domserver_tmpdir@');

phpstan.dist.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ parameters:
2222
message: "#Method .* return type has no value type specified in iterable type array#"
2323
path: webapp/src/DataFixtures/Test
2424
includes:
25-
- lib/vendor/phpstan/phpstan-doctrine/extension.neon
25+
- webapp/vendor/phpstan/phpstan-doctrine/extension.neon

webapp/bin/console

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
use App\Kernel;
55
use Symfony\Bundle\FrameworkBundle\Console\Application;
66

7-
if (!is_file(dirname(__DIR__, 2) . '/lib/vendor/autoload_runtime.php')) {
7+
if (!is_file(dirname(__DIR__, 2) . '/webapp/vendor/autoload_runtime.php')) {
88
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
99
}
1010

11-
require_once dirname(__DIR__, 2) . '/lib/vendor/autoload_runtime.php';
11+
require_once dirname(__DIR__, 2) . '/webapp/vendor/autoload_runtime.php';
1212
require_once dirname(__DIR__) . '/config/load_db_secrets.php';
1313

1414
set_time_limit(0);

webapp/bin/phpunit

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ if (!ini_get('date.timezone')) {
55
ini_set('date.timezone', 'UTC');
66
}
77

8-
if (is_file(dirname(__DIR__, 2) . '/lib/vendor/phpunit/phpunit/phpunit')) {
8+
if (is_file(dirname(__DIR__, 2) . '/webapp/vendor/phpunit/phpunit/phpunit')) {
99
if (PHP_VERSION_ID >= 80000) {
10-
require dirname(__DIR__, 2) . '/lib/vendor/phpunit/phpunit/phpunit';
10+
require dirname(__DIR__, 2) . '/webapp/vendor/phpunit/phpunit/phpunit';
1111
} else {
12-
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__, 2) . '/lib/vendor/autoload.php');
12+
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__, 2) . '/webapp/vendor/autoload.php');
1313
require PHPUNIT_COMPOSER_INSTALL;
1414
PHPUnit\TextUI\Command::main();
1515
}
1616
} else {
1717
if (!is_file(dirname(__DIR__,
18-
2) . '/lib/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
18+
2) . '/webapp/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
1919
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
2020
exit(1);
2121
}
2222

23-
require dirname(__DIR__, 2) . '/lib/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
23+
require dirname(__DIR__, 2) . '/webapp/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
2424
}

webapp/config/autoload.php.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use Doctrine\Common\Annotations\AnnotationRegistry;
1212
use Composer\Autoload\ClassLoader;
1313

1414
// Load the static domserver file if we don't have the constants from it yet
15-
if (!defined('LIBVENDORDIR')) {
15+
if (!defined('VENDORDIR')) {
1616
require('@domserver_etcdir@/domserver-static.php');
1717
}
1818

19-
return require LIBVENDORDIR.'/autoload.php';
19+
return require VENDORDIR.'/autoload.php';

webapp/config/static.yaml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ parameters:
77
domjudge.webappdir: @domserver_webappdir@
88
domjudge.libdir: @domserver_libdir@
99
domjudge.sqldir: @domserver_sqldir@
10-
domjudge.libvendordir: @domserver_libvendordir@
10+
domjudge.vendordir: @domserver_webappdir@/vendor
1111
domjudge.logdir: @domserver_logdir@
1212
domjudge.rundir: @domserver_rundir@
1313
domjudge.tmpdir: @domserver_tmpdir@

webapp/public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use App\Kernel;
44

5-
require_once dirname(__DIR__, 2) . '/lib/vendor/autoload_runtime.php';
5+
require_once dirname(__DIR__, 2) . '/webapp/vendor/autoload_runtime.php';
66
require_once dirname(__DIR__) . '/config/load_db_secrets.php';
77

88
return function (array $context) {

webapp/src/Service/DOMJudgeService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function __construct(
9696
protected readonly Environment $twig,
9797
#[Autowire('%kernel.project_dir%')]
9898
protected string $projectDir,
99-
#[Autowire('%domjudge.libvendordir%')]
99+
#[Autowire('%domjudge.vendordir%')]
100100
protected string $vendorDir,
101101
) {}
102102

webapp/tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use Symfony\Component\Dotenv\Dotenv;
44

5-
require dirname(__DIR__, 2) . '/lib/vendor/autoload.php';
5+
require dirname(__DIR__, 2) . '/webapp/vendor/autoload.php';
66
require dirname(__DIR__) . '/config/load_db_secrets.php';
77

88
if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) {

0 commit comments

Comments
 (0)