Skip to content

Commit

Permalink
Set allowed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Aug 12, 2023
1 parent f0ab1c3 commit df589c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
3 changes: 3 additions & 0 deletions routing/routes/routes.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
authx509-main:
path: /expiryWarning
defaults: { _controller: 'SimpleSAML\Module\authX509\Controller\ExpiryWarning::main' }
methods: [GET]

authx509-main-legacy:
path: /expirywarning.php
defaults: { _controller: 'SimpleSAML\Module\authX509\Controller\ExpiryWarning::main' }
methods: [GET]
12 changes: 2 additions & 10 deletions src/Controller/ExpiryWarning.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
*/
class ExpiryWarning
{
/** @var \SimpleSAML\Configuration */
protected Configuration $config;

/** @var \SimpleSAML\Session */
protected Session $session;

/**
* @var \SimpleSAML\Auth\State|string
* @psalm-var \SimpleSAML\Auth\State|class-string
Expand All @@ -49,11 +43,9 @@ class ExpiryWarning
* @throws \Exception
*/
public function __construct(
Configuration $config,
Session $session
protected Configuration $config,
protected Session $session
) {
$this->config = $config;
$this->session = $session;
}


Expand Down

0 comments on commit df589c0

Please sign in to comment.