Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brusch authored and github-actions[bot] committed Jan 2, 2023
1 parent 4d3f1e3 commit 83d74d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bundles/AdminBundle/Session/Handler/AdminSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

/**
* @internal
* @deprecated
*
* @deprecated
*/
class AdminSessionHandler implements LoggerAwareInterface, AdminSessionHandlerInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

/**
* @internal
*
* @deprecated
*/
interface AdminSessionHandlerInterface
Expand Down
3 changes: 0 additions & 3 deletions lib/Tool/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ final class Session
* @desc For forward compatibility, you can use this class and pass the SessionInterface from the request, in Pimcore 10.6, the Admin Session will be used instead
*
* @param SessionInterface $session Parameter is not used here since the dedicated Admin Session is used. Please pass the Request SessionInterface here for forward compatibility
*
* @param callable(AttributeBagInterface, SessionInterface):mixed $func
*
*/
Expand All @@ -49,15 +48,13 @@ public static function useBag(SessionInterface $session, callable $func, string
* @desc For forward compatibility, you can use this class and pass the SessionInterface from the request, in Pimcore 10.6, the Admin Session will be used instead
*
* @param SessionInterface $session Parameter is not used here since the dedicated Admin Session is used. Please pass the Request SessionInterface here for forward compatibility
*
* @param string $namespace
*
*/
public static function getSessionBag(
SessionInterface $session,
string $namespace = 'pimcore_admin'
): ?AttributeBagInterface {

$bag = self::getSessionHandler()->loadAttributeBag($namespace);
if ($bag instanceof AttributeBagInterface) {
return $bag;
Expand Down

0 comments on commit 83d74d0

Please sign in to comment.