File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ abstract class Group extends BaseGroup
20
20
{
21
21
public function __construct ($ name , $ roles = array ())
22
22
{
23
- trigger_error (E_USER_DEPRECATED , sprintf ('%s is deprecated. Extend FOS\UserBundle\Model\Group directly. ' , __CLASS__ ));
23
+ trigger_error (sprintf ('%s is deprecated. Extend FOS\UserBundle\Model\Group directly. ' , __CLASS__ ), E_USER_DEPRECATED );
24
24
parent ::__construct ($ name , $ roles );
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ abstract class User extends AbstractUser
20
20
{
21
21
public function __construct ()
22
22
{
23
- trigger_error (E_USER_DEPRECATED , sprintf ('%s is deprecated. Extend FOS\UserBundle\Model\User directly. ' , __CLASS__ ));
23
+ trigger_error (sprintf ('%s is deprecated. Extend FOS\UserBundle\Model\User directly. ' , __CLASS__ ), E_USER_DEPRECATED );
24
24
parent ::__construct ();
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Group extends BaseGroup
20
20
{
21
21
public function __construct ($ name , $ roles = array ())
22
22
{
23
- trigger_error (E_USER_DEPRECATED , sprintf ('%s is deprecated. Extend FOS\UserBundle\Model\Group directly. ' , __CLASS__ ));
23
+ trigger_error (sprintf ('%s is deprecated. Extend FOS\UserBundle\Model\Group directly. ' , __CLASS__ ), E_USER_DEPRECATED );
24
24
parent ::__construct ($ name , $ roles );
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ abstract class User extends AbstractUser
20
20
{
21
21
public function __construct ()
22
22
{
23
- trigger_error (E_USER_DEPRECATED , sprintf ('%s is deprecated. Extend FOS\UserBundle\Model\User directly. ' , __CLASS__ ));
23
+ trigger_error (sprintf ('%s is deprecated. Extend FOS\UserBundle\Model\User directly. ' , __CLASS__ ), E_USER_DEPRECATED );
24
24
parent ::__construct ();
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ public function findUserByConfirmationToken($token)
124
124
*/
125
125
public function refreshUser (SecurityUserInterface $ user )
126
126
{
127
- trigger_error (E_USER_DEPRECATED , 'Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. ' );
127
+ trigger_error ('Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. ' , E_USER_DEPRECATED );
128
128
129
129
$ class = $ this ->getClass ();
130
130
if (!$ user instanceof $ class ) {
@@ -154,7 +154,7 @@ public function refreshUser(SecurityUserInterface $user)
154
154
*/
155
155
public function loadUserByUsername ($ username )
156
156
{
157
- trigger_error (E_USER_DEPRECATED , 'Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. ' );
157
+ trigger_error ('Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. ' , E_USER_DEPRECATED );
158
158
159
159
$ user = $ this ->findUserByUsername ($ username );
160
160
@@ -220,7 +220,7 @@ protected function getEncoder(UserInterface $user)
220
220
*/
221
221
public function supportsClass ($ class )
222
222
{
223
- trigger_error (E_USER_DEPRECATED , 'Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. ' );
223
+ trigger_error ('Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. ' , E_USER_DEPRECATED );
224
224
225
225
return $ class === $ this ->getClass ();
226
226
}
You can’t perform that action at this time.
0 commit comments