Skip to content

Commit

Permalink
add LoginHandlerInterface
Browse files Browse the repository at this point in the history
This is needed for overriding the Login handler.
  • Loading branch information
drupol committed Apr 12, 2023
1 parent 20bac1e commit a0a6702
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/Contract/Handler/LoginHandlerInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

/**
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/ecphp
*/

declare(strict_types=1);

namespace EcPhp\CasLib\Contract\Handler;

interface LoginHandlerInterface extends HandlerInterface
{
}
3 changes: 2 additions & 1 deletion src/Handler/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace EcPhp\CasLib\Handler;

use EcPhp\CasLib\Contract\Handler\HandlerInterface;
use EcPhp\CasLib\Contract\Handler\LoginHandlerInterface;
use EcPhp\CasLib\Exception\CasExceptionInterface;
use EcPhp\CasLib\Exception\CasHandlerException;
use EcPhp\CasLib\Utils\Uri;
Expand All @@ -20,7 +21,7 @@

use function array_key_exists;

final class Login extends Handler implements HandlerInterface
final class Login extends Handler implements LoginHandlerInterface
{
public function handle(RequestInterface $request): ResponseInterface
{
Expand Down

0 comments on commit a0a6702

Please sign in to comment.