fatindeed /
gitlab-webhookd
| 1 | #!/usr/bin/env php |
||
| 2 | <?php |
||
| 3 | |||
| 4 | /** |
||
| 5 | * Gitlab webhookd |
||
| 6 | * |
||
| 7 | * @author James Zhu <[email protected]> |
||
| 8 | * @license MIT https://mit-license.org/ |
||
| 9 | */ |
||
| 10 | |||
| 11 | declare(strict_types=1); |
||
| 12 | |||
| 13 | require __DIR__ . '/vendor/autoload.php'; |
||
| 14 | |||
| 15 | use Symfony\Component\Config\FileLocator; |
||
| 16 | use Symfony\Component\Console\Application; |
||
| 17 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
| 18 | use Symfony\Component\DependencyInjection\Loader\PhpFileLoader; |
||
| 19 | |||
| 20 | $container = new ContainerBuilder(); |
||
| 21 | |||
| 22 | $loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/config')); |
||
| 23 | $loader->load('services.php'); |
||
| 24 | |||
| 25 | $application = new Application(); |
||
| 26 | $application->setCommandLoader($container->get('console.command_loader')); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 27 | $application->run(); |
||
| 28 |