Skip to content

Commit

Permalink
Rename namespace of Kernel
Browse files Browse the repository at this point in the history
It is no longer in App, but resides in Surf/Middleware
  • Loading branch information
MKodde committed Mar 14, 2024
1 parent e841731 commit 56ce062
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 62 deletions.
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env php
<?php
use Surfnet\AzureMfa\Infrastructure\Kernel;
use Surfnet\StepupMiddleware\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;

if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
Expand Down
2 changes: 1 addition & 1 deletion ci/qa/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ini name="error_reporting" value="-1"/>
<server name="APP_ENV" value="test" force="true"/>
<server name="SHELL_VERBOSITY" value="-1"/>
<server name="KERNEL_CLASS" value="\App\Kernel"/>
<server name="KERNEL_CLASS" value="\Surfnet\StepupMiddleware\Kernel"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="999999"/>
</php>
<testsuites>
Expand Down
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"psr-4": {
"Surfnet\\Stepup\\": "src\\Surfnet\\Stepup",
"Surfnet\\StepupMiddleware\\": "src\\Surfnet\\StepupMiddleware"
},
"classmap": [
"src/Kernel.php"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
use App\Kernel;
use Surfnet\StepupMiddleware\Kernel;

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
require_once dirname(__DIR__).'/config/bootstrap.php';
Expand Down
55 changes: 0 additions & 55 deletions src/Kernel.php

This file was deleted.

21 changes: 21 additions & 0 deletions src/Surfnet/StepupMiddleware/Kernel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace Surfnet\StepupMiddleware;

use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
use const PHP_VERSION_ID;

class Kernel extends BaseKernel
{
use MicroKernelTrait;

public function getProjectDir(): string
{
return dirname(__DIR__, 3);
}
}

0 comments on commit 56ce062

Please sign in to comment.