Skip to content

Commit

Permalink
Process review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
parijke committed Jun 12, 2024
1 parent 0dd651e commit 3d28e82
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 12 deletions.
3 changes: 2 additions & 1 deletion bin/console
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env php
<?php

use src\Kernel;

use Surfnet\StepupRa\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;

if (!is_file(dirname(__DIR__).'/vendor/autoload.php')) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Surfnet\\": "src\\Surfnet"
},
"classmap": [
"src/Kernel.php"
"src/Surfnet/StepupRa/Kernel.php"
]
},
"minimum-stability": "stable",
Expand Down
2 changes: 1 addition & 1 deletion config/routes/controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ controllers:
type: attribute

kernel:
resource: ../../src/Kernel.php
resource: ../../src/Surfnet/StepupRa/Kernel.php
type: attribute
3 changes: 1 addition & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
* limitations under the License.
*/


use src\Kernel;
use Surfnet\StepupRa\Kernel;

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
require_once dirname(__DIR__).'/config/bootstrap.php';
Expand Down
4 changes: 2 additions & 2 deletions src/Kernel.php → src/Surfnet/StepupRa/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
*/

namespace src;
namespace Surfnet\StepupRa;

use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
Expand All @@ -30,6 +30,6 @@ class Kernel extends BaseKernel
// see https://symfony.com/doc/current/reference/configuration/kernel.html#kernel-project-dir
public function getProjectDir(): string
{
return dirname(__DIR__);
return dirname(__DIR__, 3);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types = 1);

/**
* Copyright 2016 SURFnet bv
* Copyright 2024 SURFnet bv
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -42,8 +42,6 @@ public function __construct(
public static function getSubscribedEvents(): array
{
return [
// The firewall, which makes the token available, listens at P8
// We must jump in after the firewall, forcing us to overwrite the translator locale.
KernelEvents::REQUEST => ['updateLastInteractionMoment', 6],
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public function __construct(
public static function getSubscribedEvents(): array
{
return [
// The firewall, which makes the token available, listens at P8
// We must jump in after the firewall, forcing us to overwrite the translator locale.
KernelEvents::REQUEST => ['checkSessionTimeout', 5],
];
}
Expand Down

0 comments on commit 3d28e82

Please sign in to comment.