File tree Expand file tree Collapse file tree 6 files changed +17
-14
lines changed
Component/EntityLog/Detection
tests/Unit/Model/Customer/Mock Expand file tree Collapse file tree 6 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 55namespace Shopsys \FrameworkBundle \Component \EntityLog \Detection ;
66
77use Shopsys \FrameworkBundle \Component \EntityLog \Enum \EntityLogSourceEnum ;
8- use Symfony \Component \ Security \ Core \Security ;
8+ use Symfony \Bundle \ SecurityBundle \Security ;
99
1010class DetectionFacade
1111{
@@ -14,7 +14,7 @@ class DetectionFacade
1414 protected ?string $ userIdentifier = null ;
1515
1616 /**
17- * @param \Symfony\Component\Security\Core \Security $security
17+ * @param \Symfony\Bundle\SecurityBundle \Security $security
1818 */
1919 public function __construct (
2020 protected readonly Security $ security ,
Original file line number Diff line number Diff line change 1515use Shopsys \FrameworkBundle \Model \Administrator \RoleGroup \AdministratorRoleGroup ;
1616use Shopsys \FrameworkBundle \Model \Administrator \RoleGroup \AdministratorRoleGroupFacade ;
1717use Shopsys \FrameworkBundle \Model \Security \Roles ;
18+ use Symfony \Bundle \SecurityBundle \Security ;
1819use Symfony \Component \Form \AbstractType ;
1920use Symfony \Component \Form \Extension \Core \Type \ChoiceType ;
2021use Symfony \Component \Form \Extension \Core \Type \EmailType ;
2122use Symfony \Component \Form \Extension \Core \Type \SubmitType ;
2223use Symfony \Component \Form \Extension \Core \Type \TextType ;
2324use Symfony \Component \Form \FormBuilderInterface ;
2425use Symfony \Component \OptionsResolver \OptionsResolver ;
25- use Symfony \Component \Security \Core \Security ;
2626use Symfony \Component \Validator \Constraints ;
2727
2828class AdministratorFormType extends AbstractType
@@ -31,7 +31,7 @@ class AdministratorFormType extends AbstractType
3131 public const string SCENARIO_EDIT = 'edit ' ;
3232
3333 /**
34- * @param \Symfony\Component\Security\Core \Security $security
34+ * @param \Symfony\Bundle\SecurityBundle \Security $security
3535 * @param \Shopsys\FrameworkBundle\Model\Administrator\RoleGroup\AdministratorRoleGroupFacade $administratorRoleGroupFacade
3636 * @param \Shopsys\FrameworkBundle\Model\Security\Roles $roles
3737 * @param \Shopsys\FrameworkBundle\Component\Router\Security\RouteCsrfProtector $routeCsrfProtector
Original file line number Diff line number Diff line change 66
77use Knp \Menu \ItemInterface ;
88use Shopsys \FrameworkBundle \Model \Security \MenuItemsGrantedRolesSetting ;
9+ use Symfony \Bundle \SecurityBundle \Security ;
910use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
10- use Symfony \Component \Security \Core \Security ;
1111
1212class MenuItemsGrantedRolesSubscriber implements EventSubscriberInterface
1313{
1414 /**
15- * @param \Symfony\Component\Security\Core \Security $security
15+ * @param \Symfony\Bundle\SecurityBundle \Security $security
1616 * @param \Shopsys\FrameworkBundle\Model\Security\MenuItemsGrantedRolesSetting $menuItemsGrantedRolesSetting
1717 */
1818 public function __construct (
Original file line number Diff line number Diff line change 55namespace Shopsys \FrameworkBundle \Model \Customer \User \Role ;
66
77use Shopsys \FrameworkBundle \Model \Customer \User \CustomerUser ;
8+ use Symfony \Bundle \SecurityBundle \Security ;
89use Symfony \Component \Security \Core \Role \RoleHierarchyInterface ;
9- use Symfony \Component \Security \Core \Security ;
1010
1111class CustomerUserRoleResolver
1212{
1313 /**
1414 * @param \Symfony\Component\Security\Core\Role\RoleHierarchyInterface $roleHierarchy
15- * @param \Symfony\Component\Security\Core \Security $security
15+ * @param \Symfony\Bundle\SecurityBundle \Security $security
1616 */
1717 public function __construct (
1818 protected readonly RoleHierarchyInterface $ roleHierarchy ,
Original file line number Diff line number Diff line change 55namespace Shopsys \FrameworkBundle \Model \Security ;
66
77use Shopsys \FrameworkBundle \Component \Router \CurrentDomainRouter ;
8+ use Symfony \Bundle \SecurityBundle \Security ;
89use Symfony \Component \HttpFoundation \JsonResponse ;
910use Symfony \Component \HttpFoundation \RedirectResponse ;
1011use Symfony \Component \HttpFoundation \Request ;
1314use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
1415use Symfony \Component \Security \Core \Exception \AuthenticationException ;
1516use Symfony \Component \Security \Core \Exception \TooManyLoginAttemptsAuthenticationException ;
16- use Symfony \Component \Security \Core \Security ;
1717use Symfony \Component \Security \Http \Authentication \AuthenticationFailureHandlerInterface ;
1818use Symfony \Component \Security \Http \Authentication \AuthenticationSuccessHandlerInterface ;
1919
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ public function unserialize(string $data)
3030 {
3131 }
3232
33- public function __toString ()
33+ /**
34+ * @return string
35+ */
36+ public function __toString (): string
3437 {
3538 return '' ;
3639 }
@@ -58,7 +61,7 @@ public function getUser(): ?UserInterface
5861 /**
5962 * @param mixed $user
6063 */
61- public function setUser ($ user )
64+ public function setUser ($ user ): void
6265 {
6366 }
6467
@@ -74,7 +77,7 @@ public function setAuthenticated(bool $isAuthenticated)
7477 {
7578 }
7679
77- public function eraseCredentials ()
80+ public function eraseCredentials (): void
7881 {
7982 }
8083
@@ -89,7 +92,7 @@ public function getAttributes(): array
8992 /**
9093 * @param array $attributes
9194 */
92- public function setAttributes (array $ attributes )
95+ public function setAttributes (array $ attributes ): void
9396 {
9497 }
9598
@@ -115,7 +118,7 @@ public function getAttribute(string $name): mixed
115118 * @param string $name
116119 * @param mixed $value
117120 */
118- public function setAttribute (string $ name , $ value )
121+ public function setAttribute (string $ name , $ value ): void
119122 {
120123 }
121124
You can’t perform that action at this time.
0 commit comments