Commit Graph

54193 Commits

Author SHA1 Message Date
James Hemery
351065e774 [Notifier] [FakeSms] Add the bridge 2021-03-29 14:04:56 +02:00
Vasilij Dusko | CREATION
e20ef1ed35 * LightSmsTransport.php - change + to 00 2021-03-29 14:16:34 +03:00
Nyholm
68276562c3
Fixed support for nodes not extending BaseNode 2021-03-29 12:55:05 +02:00
Vasilij Dusko | CREATION
b0e64b9250 * LightSmsTransport.php - not ok throw exception 2021-03-29 13:51:17 +03:00
Vasilij Dusko | CREATION
fc13bb27e2 * LightSmsTransport.php - changed login for validation (the same like we have all places) 2021-03-29 13:34:15 +03:00
Vasilij Dusko | CREATION
5d2e6928f3 * LightSmsTransport.php - escape phone number 2021-03-29 13:29:53 +03:00
Vasilij Dusko | CREATION
8620e828a7 * LightSmsTransport.php - move timestamp 2021-03-29 13:14:06 +03:00
Nicolas Grekas
8aa6818322 [FrameworkBundle] dont access the container to configure http_cache 2021-03-29 10:37:12 +02:00
Vasilij Duško
66c34baf03 Update README.md 2021-03-29 08:45:01 +03:00
Vasilij Duško
2e0e1d733d Update README.md 2021-03-29 08:45:01 +03:00
Vasilij Duško
7b51e0dd7f Update src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
Co-authored-by: Thibault RICHARD <thibault@widop.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
079406ed3d Update src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
Co-authored-by: Thibault RICHARD <thibault@widop.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
0e41bc9186 Update src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportFactoryTest.php
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
3d0d79cfe2 Update src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportFactoryTest.php
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
e0a68bd0ac Update src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
Co-authored-by: Thibault RICHARD <thibault@widop.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
1b073c2366 Update src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
Co-authored-by: Thibault RICHARD <thibault@widop.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
b0891be0b2 Update src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
Co-authored-by: Thibault RICHARD <thibault@widop.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
49b4780f40 Update src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
Co-authored-by: Thibault RICHARD <thibault@widop.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
b2e46387b7 Update src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
Co-authored-by: Thibault RICHARD <thibault@widop.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
c02dbbd963 Update src/Symfony/Component/Notifier/Bridge/LightSms/README.md
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
2021-03-29 08:45:01 +03:00
Vasilij Duško
9f89014d94 Update src/Symfony/Component/Notifier/Bridge/LightSms/README.md
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
2021-03-29 08:45:01 +03:00
Vasilij Dusko
5e54dfe475 * LightSmsTransport.php - quick fix for private constant. 2021-03-29 08:45:01 +03:00
Vasilij Dusko
3cbbc85e43 * HOST split into two parts 2021-03-29 08:45:01 +03:00
Vasilij Dusko
9e1809e6ae * small changes 2021-03-29 08:45:01 +03:00
Vasilij Duško
febff4613d Update src/Symfony/Component/Notifier/Bridge/LightSms/LICENSE
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
2021-03-29 08:45:01 +03:00
Vasilij Dusko
4a11b945a3 * github account author 2021-03-29 08:45:01 +03:00
Vasilij Dusko
728a3e2450 * Transport.php - missing use 2021-03-29 08:45:01 +03:00
Vasilij Dusko
ce41756a6c * notifier_transports.php - Coding Standard 2021-03-29 08:45:01 +03:00
Vasilij Dusko
d1ccd46e75 * Attached file changes which are required to run the lightsms notifier 2021-03-29 08:45:01 +03:00
Vasilij Dusko
a0fae7dc4a * tests 2021-03-29 08:45:01 +03:00
Vasilij Dusko
15686c0851 * LightSmsTransport.php - Coding Standard 2021-03-29 08:45:01 +03:00
Vasilij Dusko
2f65b92cba * LightSmsTransport.php - Coding Standard 2021-03-29 08:45:00 +03:00
Vasilij Dusko
6792535a52 * composer.json - requirements bug fix 2021-03-29 08:45:00 +03:00
Vasilij Dusko
167f325f40 * LightSmsTransport.php - logic error 2021-03-29 08:45:00 +03:00
Vasilij Dusko
be8f994fca * LightSmsTransport.php - return type 2021-03-29 08:45:00 +03:00
Vasilij Dusko
f2ba226b46 * LightSmsTransport.php - bug fix 2021-03-29 08:45:00 +03:00
Vasilij Dusko
b075c0eae2 * LightSms notifier 2021-03-29 08:45:00 +03:00
Fabien Potencier
d6020a95f5 Bump Symfony version to 5.2.7 2021-03-29 07:20:15 +02:00
Fabien Potencier
f52424eb40
Merge pull request #40617 from fabpot/release-5.2.6
released v5.2.6
2021-03-29 07:17:12 +02:00
Fabien Potencier
4217e4c4cc Update VERSION for 5.2.6 2021-03-29 07:16:58 +02:00
Fabien Potencier
361206abe0 Update CHANGELOG for 5.2.6 2021-03-29 07:16:50 +02:00
Fabien Potencier
09fe7333bb Bump Symfony version to 4.4.22 2021-03-29 07:15:29 +02:00
Fabien Potencier
0139b7a745
Merge pull request #40616 from fabpot/release-4.4.21
released v4.4.21
2021-03-29 07:11:20 +02:00
Fabien Potencier
c990794868 Update VERSION for 4.4.21 2021-03-29 07:11:04 +02:00
Fabien Potencier
be1805450e Update CONTRIBUTORS for 4.4.21 2021-03-29 07:10:41 +02:00
Fabien Potencier
58b03fbae3 Update CHANGELOG for 4.4.21 2021-03-29 07:10:17 +02:00
Robin Chalas
40a2c19ae7 feature #40403 [Security] Rename UserInterface::getUsername() to getUserIdentifier() (wouterj)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Security] Rename UserInterface::getUsername() to getUserIdentifier()

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | yes
| Tickets       | Fix part of #39308
| License       | MIT
| Doc PR        | tbd

This continues the great work by @chalasr in #40267 and rounds up the `UserInterface` cleanup.

The `getUsername()` has been a point of confusion for many years. In today's applications, many domains no longer have a username, but instead rely on a user's email address or the like. Even more, this username has to be unique for all Security functionality to work correctly - so it's more confusing in complex applications relying on e.g. "username+company" to be unique.

**This PR proposes to rename the method to `getUserIdentifier()`**, to more clearly indicate the goal of the method (note: I'm open for any other suggestion).

For BC, the `getUsername()` method is deprecated in 5.3 and `getUserIdentifier()` will be added to the `UserInterface` in 6.0. PHPdocs are used to improve type-hinting for 5.3 & 5.4. Both authentication managers (the legacy and experimental one) check the authenticated user object and trigger a deprecation if `getUserIdentifier()` is not implemented.
* [x] **judge whether we need to have better deprecations for calling `getUsername()` in the application code.**

Consistent with these changes, I've also done the same BC change for `TokenInterface::getUsername()`.
* [x] **do the same for remember me's `PersistentTokenInterface::getUsername()`**
* [x] **also rename `UserProviderInterface::loadUserByUsername()` & `UsernameNotFoundException`**
* [x] **also rename `UserLoaderInterface::loadUserByUsername()`**

I'm very much looking forward for feedback and help for this important, but BC-heavy, rename. 😃

Commits
-------

8afd7a3765 [Security] Rename UserInterface::getUsername() to getUserIdentifier()
2021-03-28 22:25:04 +02:00
Wouter de Jong
8afd7a3765 [Security] Rename UserInterface::getUsername() to getUserIdentifier() 2021-03-28 22:24:55 +02:00
Robin Chalas
c469ea6fff Merge branch '5.2' into 5.x
* 5.2:
  [Security] Use more concrete user classes in tests
  fix docblock
2021-03-28 19:35:24 +02:00
Robin Chalas
567e1183b7 minor #40612 [Security] Use more concrete user classes in tests (wouterj)
This PR was merged into the 5.2 branch.

Discussion
----------

[Security] Use more concrete user classes in tests

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Similar to #40609.

https://github.com/symfony/symfony/pull/40145 keeps resisting... this should be the last mocked user & user provider in the 5.2 tests, looking at the failing deps=high build.

Commits
-------

631408b757 [Security] Use more concrete user classes in tests
2021-03-28 19:29:15 +02:00