Refactor framework to support more years

This commit is contained in:
2021-12-09 22:41:22 +01:00
parent d3cd95aed2
commit 9891975d0f
56 changed files with 1257 additions and 1084 deletions

17
aoc Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env php
<?php
require __DIR__.'/vendor/autoload.php';
use NunoMaduro\Collision\Provider as CollisionProvider;
use Symfony\Component\Console\Application;
use trizz\AdventOfCode\ExecuteDay;
use trizz\AdventOfCode\Puzzle;
(new CollisionProvider)->register();
$application = new Application();
$application->add(new Puzzle());
$application->add(new ExecuteDay());
$application->run();