REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.49 KB
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/rector/rector-symfony/src/NodeFactory/BareLogoutClassMethodFactory.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\Symfony\NodeFactory; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Identifier; use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Param; use PhpParser\Node\Stmt\ClassMethod; use Rector\Php\PhpVersionProvider; use Rector\PhpParser\Node\NodeFactory; use Rector\ValueObject\PhpVersionFeature; final class BareLogoutClassMethodFactory { /** * @readonly * @var \Rector\PhpParser\Node\NodeFactory */ private $nodeFactory; /** * @readonly * @var \Rector\Php\PhpVersionProvider */ private $phpVersionProvider; public function __construct(NodeFactory $nodeFactory, PhpVersionProvider $phpVersionProvider) { $this->nodeFactory = $nodeFactory; $this->phpVersionProvider = $phpVersionProvider; } public function create() : ClassMethod { $classMethod = $this->nodeFactory->createPublicMethod('onLogout'); $variable = new Variable('logoutEvent'); $classMethod->params[] = $this->createLogoutEventParam($variable); if ($this->phpVersionProvider->isAtLeastPhpVersion(PhpVersionFeature::VOID_TYPE)) { $classMethod->returnType = new Identifier('void'); } return $classMethod; } private function createLogoutEventParam(Variable $variable) : Param { $param = new Param($variable); $param->type = new FullyQualified('Symfony\\Component\\Security\\Http\\Event\\LogoutEvent'); return $param; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Annotations
DIR
-
drwxr-xr-x
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ArrayFromCompactFactory.php
1.07 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
BareLogoutClassMethodFactory.php
1.49 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
EventReferenceFactory.php
1.60 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GetSubscribedEventsClassMethodFactory.php
9.66 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OnLogoutClassMethodFactory.php
3.08 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OnSuccessLogoutClassMethodFactory.php
3.77 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ThisRenderFactory.php
6.38 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).