-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathtypo3-coding-standards
More file actions
executable file
·45 lines (37 loc) · 1.01 KB
/
typo3-coding-standards
File metadata and controls
executable file
·45 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env php
<?php
/*
* This file is part of the TYPO3 project.
*
* (c) 2019-2024 Benni Mack
* Simon Gilli
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Loads Composer's autoload.php.
*/
(static function (): void {
$possibleAutoloaders = [
__DIR__ . '/../../autoload.php',
__DIR__ . '/../autoload.php',
__DIR__ . '/vendor/autoload.php',
];
$autoloader = null;
foreach ($possibleAutoloaders as $possibleAutoloader) {
if (file_exists($possibleAutoloader)) {
$autoloader = $possibleAutoloader;
break;
}
}
if ($autoloader === null) {
throw new RuntimeException(sprintf('Unable to locate autoload.php file from %s.', __FILE__));
}
require_once $autoloader;
})();
use TYPO3\CodingStandards\Console\Application;
(new Application())->run();
__HALT_COMPILER();