8000 Avoid broken action URL in text notification mail by mbrodala · Pull Request #41738 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Avoid broken action URL in text notification mail #41738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 67 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
3a19253
[FrameworkBundle] Add autowiring alias for `HttpCache\StoreInterface`
nicolas-grekas May 12, 2021
8f595ec
Update version to 5.4
fabpot May 19, 2021
f0c3389
Add sponsors for 5.4
fabpot May 19, 2021
b0153f4
Merge branch '5.3' into 5.4
fabpot May 19, 2021
49a1030
Remove 5.3 sponsors
fabpot May 19, 2021
c0f757b
minor #41286 Add sponsors for 5.4 (fabpot)
fabpot May 19, 2021
e32d330
Merge branch '5.3' into 5.4
nicolas-grekas May 19, 2021
d6f4d30
Fix the detection of the stable Symfony branch
derrabus May 19, 2021
2da144e
Allow Symfony 6
derrabus May 19, 2021
8ca0728
minor #41291 Allow Symfony 6 (derrabus)
derrabus May 19, 2021
1ba78b9
Merge branch '5.3' into 5.4
derrabus May 19, 2021
a2c8e84
minor #41293 Fix the detection of the stable Symfony branch (derrabus)
derrabus May 19, 2021
ed1a65f
Merge branch '5.3' into 5.4
nicolas-grekas May 20, 2021
20bf651
[Runtime] allow "|^6.0" deps
nicolas-grekas May 20, 2021
1a0c105
minor #41331 [Runtime] allow "|^6.0" deps (nicolas-grekas)
nicolas-grekas May 20, 2021
5eab165
Merge branch '5.3' into 5.4
derrabus May 20, 2021
0aedd99
Merge branch '5.3' into 5.4
nicolas-grekas May 20, 2021
c5b5115
Merge branch '5.3' into 5.4
nicolas-grekas May 20, 2021
f836f6b
Merge branch '5.3' into 5.4
nicolas-grekas May 20, 2021
cbc7c5d
Merge branch '5.3' into 5.4
derrabus May 20, 2021
c82d8c9
Merge branch '5.3' into 5.4
derrabus May 21, 2021
c339649
feature #41203 [FrameworkBundle] Add autowiring alias for `HttpCache\…
derrabus May 22, 2021
f27e6cc
Merge branch '5.3' into 5.4
derrabus May 22, 2021
14540c1
Merge branch '5.3' into 5.4
nicolas-grekas May 23, 2021
744b901
Merge branch '5.3' into 5.4
nicolas-grekas May 23, 2021
c904089
Merge branch '5.3' into 5.4
derrabus May 23, 2021
6d3e90d
[FrameworkBundle] Deprecate the `AdapterInterface` autowiring alias, …
nicolas-grekas May 12, 2021
e574a24
Merge branch '5.3' into 5.4
nicolas-grekas May 24, 2021
fa7b518
feature #41199 [FrameworkBundle] Deprecate the `AdapterInterface` aut…
derrabus May 24, 2021
9688631
Merge branch '5.3' into 5.4
xabbuh May 25, 2021
27b1654
Merge branch '5.3' into 5.4
xabbuh May 25, 2021
0458384
Fix compatibility with Symfony6
jderusse May 20, 2021
46ca50f
Merge branch '5.3' into 5.4
nicolas-grekas May 26, 2021
b7c9b1e
Merge branch '5.3' into 5.4
nicolas-grekas May 27, 2021
6805929
Merge branch '5.3' into 5.4
nicolas-grekas May 27, 2021
2ba71b0
[travis] test with v6 on deps=high
nicolas-grekas May 27, 2021
cfb1016
bug #41343 [HttpKernel] Fix compatibility with Symfony6 (jderusse)
nicolas-grekas May 27, 2021
b56606e
Provide migration path for TestSessionListener
jderusse May 29, 2021
b7e9194
Fix sessionListener when factory is injected without session
jderusse Jun 1, 2021
7714648
bug #41446 [HttpKernel] Provide migration path for TestSessionListene…
nicolas-grekas Jun 1, 2021
e2d1cb1
bug #41486 [HttpKernel] Fix sessionListener when factory is injected …
nicolas-grekas Jun 1, 2021
f4da7e4
[Yaml] Leverage array_is_list()
nicolas-grekas May 28, 2021
c4404fd
Merge branch '5.3' into 5.4
derrabus Jun 1, 2021
dbeebd1
Merge branch '5.3' into 5.4
derrabus Jun 1, 2021
2fe4442
minor #41431 [Yaml] Leverage array_is_list() (nicolas-grekas)
nicolas-grekas Jun 2, 2021
9ccd0ad
Merge branch '5.3' into 5.4
nicolas-grekas Jun 3, 2021
06b13c3
[FrameworkBundle] Deprecate the public `profiler` service to private
nicolas-grekas Jun 3, 2021
204ae47
Merge branch '5.3' into 5.4
derrabus Jun 5, 2021
1509797
Merge branch '5.3' into 5.4
nicolas-grekas Jun 5, 2021
dae0291
feature #41530 [FrameworkBundle] Deprecate the public `profiler` serv…
nicolas-grekas Jun 6, 2021
1e3c875
Merge branch '5.3' into 5.4
derrabus Jun 6, 2021
37a89f1
Merge branch '5.3' into 5.4
nicolas-grekas Jun 7, 2021
e66c907
Merge branch '5.3' into 5.4
nicolas-grekas Jun 7, 2021
b14fe61
Merge branch '5.3' into 5.4
nicolas-grekas Jun 8, 2021
8000
6eb7f28
Merge branch '5.3' into 5.4
nicolas-grekas Jun 8, 2021
ddfab8d
Merge branch '5.3' into 5.4
derrabus Jun 8, 2021
d1b81fb
Merge branch '5.3' into 5.4
derrabus Jun 9, 2021
0dde2cc
[VarDumper] Add casters for Symfony UUIDs and ULIDs
fancyweb Jun 4, 2021
a6770fd
Merge branch '5.3' into 5.4
chalasr Jun 11, 2021
20de32e
Merge branch '5.3' into 5.4
chalasr Jun 11, 2021
2a3c003
feature #41540 [VarDumper] Add casters for Symfony UUIDs and ULIDs (f…
nicolas-grekas Jun 12, 2021
f12a419
Merge branch '5.3' into 5.4
nicolas-grekas Jun 12, 2021
0486a53
Merge branch '5.3' into 5.4
derrabus Jun 16, 2021
a0728f2
Merge branch '5.3' into 5.4
nicolas-grekas Jun 17, 2021
86a0672
Merge branch '5.3' into 5.4
nicolas-grekas Jun 17, 2021
c71c872
Merge branch '5.3' into 5.4
derrabus Jun 17, 2021
663a736
Avoid broken action URL in text notification mail
mbrodala Jun 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch '5.3' into 5.4
* 5.3:
  fixes issue #41478 by resetting the $attributes array per controller argument
  [Security] Fix setUsername() deprecation message
  Add conflict with property-info < 5.3
  Fix Symfony 5.3 end of maintenance date
  Bump Symfony version to 5.3.1
  Update VERSION for 5.3.0
  Update CHANGELOG for 5.3.0
  [FrameworkBundle] fix ConfigBuilderCacheWarmer
  [FrameworkBundle] fix creating ContainerBuilder at warmup/CLI time
  [Framework] Remove redundant cache service
  Remove PoEditor Provider
  • Loading branch information
derrabus committed Jun 1, 2021
commit c4404fd5a6a7705de70bbac6b2d01b60a9bf79da
18 changes: 18 additions & 0 deletions CHANGELOG-5.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ in 5.3 minor versions.
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v5.3.0...v5.3.1

* 5.3.0 (2021-05-31)

* bug #41458 [FrameworkBundle] fix ConfigBuilderCacheWarmer (nicolas-grekas)
* bug #41456 [FrameworkBundle] fix creating ContainerBuilder at warmup/CLI time (nicolas-grekas)
* bug #41452 [FrameworkBundle] Remove redundant cache service (derrabus)
* bug #41451 [Translation] Remove PoEditor Provider (welcoMattic)
* bug #41000 [Form] Use !isset for checks cause this doesn't falsely include 0 (Kai Dederichs)
* bug #41407 [DependencyInjection] keep container.service_subscriber tag on the decorated definition (xabbuh)
* bug #40866 [Filesystem] fix readlink() for Windows (a1812)
* bug #41402 [HttpKernel] Throw when HttpKernel is created and the env is empty (nicolas-grekas)
* bug #41376 [SecurityBundle] Don't register deprecated listeners with authenticator manager enabled (chalasr)
* bug #41394 [Form] fix support for years outside of the 32b range on x86 arch (nicolas-grekas)
* bug #41380 Make Mailgun Header compatible with other Bridges (jderusse)
* bug #39847 [Messenger] Fix merging PrototypedArrayNode associative values (svityashchuk)
* bug #41367 [Ldap] Avoid calling the deprecated getUsername() (derrabus)
* bug #41346 [WebProfilerBundle] Wrapping exception js in Sfjs check and also loading base_js Sfjs if needed (weaverryan)
* bug #41344 [VarDumper] Don't pass null to parse_url() (derrabus)

* 5.3.0-RC1 (2021-05-19)

* security #cve-2021-21424 [Security\Core] Fix user enumeration via response body on invalid credentials (chalasr)
Expand Down
2364
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
namespace Symfony\Bundle\FrameworkBundle\CacheWarmer;

use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Command\BuildDebugContainerTrait;
use Symfony\Component\Config\Builder\ConfigBuilderGenerator;
use Symfony\Component\Config\Builder\ConfigBuilderGeneratorInterface;
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\ConfigurationExtensionInterface;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
Expand All @@ -28,8 +28,6 @@
*/
class ConfigBuilderCacheWarmer implements CacheWarmerInterface
{
use BuildDebugContainerTrait;

private $kernel;
private $logger;

Expand Down Expand Up @@ -73,7 +71,7 @@ private function dumpExtension(ExtensionInterface $extension, ConfigBuilderGener
if ($extension instanceof ConfigurationInterface) {
$configuration = $extension;
} elseif ($extension instanceof ConfigurationExtensionInterface) {
$configuration = $extension->getConfiguration([], $this->getContainerBuilder($this->kernel));
$configuration = $extension->getConfiguration([], new ContainerBuilder($this->kernel->getContainer()->getParameterBag()));
}

if (!$configuration) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ protected function getContainerBuilder(KernelInterface $kernel): ContainerBuilde
}

if (!$kernel->isDebug() || !(new ConfigCache($kernel->getContainer()->getParameter('debug.container.dump'), true))->isFresh()) {
$buildContainer = \Closure::bind(function () { return $this->buildContainer(); }, $kernel, \get_class($kernel));
$buildContainer = \Closure::bind(function () {
$this->initializeBundles();

return $this->buildContainer();
}, $kernel, \get_class($kernel));
$container = $buildContainer();
$container->getCompilerPassConfig()->setRemovingPasses([]);
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@
use Symfony\Component\Translation\Bridge\Crowdin\CrowdinProviderFactory;
use Symfony\Component\Translation\Bridge\Loco\LocoProviderFactory;
use Symfony\Component\Translation\Bridge\Lokalise\LokaliseProviderFactory;
use Symfony\Component\Translation\Bridge\PoEditor\PoEditorProviderFactory;
use Symfony\Component\Translation\Command\XliffLintCommand as BaseXliffLintCommand;
use Symfony\Component\Translation\PseudoLocalizationTranslator;
use Symfony\Component\Translation\Translator;
Expand Down Expand Up @@ -1345,15 +1344,12 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
CrowdinProviderFactory::class => 'translation.provider_factory.crowdin',
LocoProviderFactory::class => 'translation.provider_factory.loco',
LokaliseProviderFactory::class => 'translation.provider_factory.lokalise',
PoEditorProviderFactory::class => 'translation.provider_factory.poeditor',
];

$parentPackages = ['symfony/framework-bundle', 'symfony/translation', 'symfony/http-client'];

foreach ($classToServices as $class => $service) {
switch ($package = substr($service, \strlen('translation.provider_factory.'))) {
case 'poeditor': $package = 'po-editor'; break;
}
$package = substr($service, \strlen('translation.provider_factory.'));

if (!$container->hasDefinition('http_client') || !ContainerBuilder::willBeAvailable(sprintf('symfony/%s-translation-provider', $package), $class, $parentPackages)) {
$container->removeDefinition($service);
Expand Down Expand Up @@ -1555,7 +1551,7 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
$container->setDefinition('annotations.cached_reader', $container->getDefinition('annotations.psr_cached_reader'));

if ('php_array' === $config['cache']) {
$cacheService = 'annotations.psr_cache';
$cacheService = 'annotations.cache_adapter';

// Enable warmer only if PHP array is used for cache
$definition = $container->findDefinition('annotations.cache_warmer');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@
param('kernel.cache_dir').'/annotations.php',
service('cache.annotations'),
])
->tag('container.hot_path')

->set('annotations.cache', DoctrineProvider::class)
->args([
service('annotations.cache_adapter')
service('annotations.cache_adapter'),
])
->tag('container.hot_path')

Expand All @@ -86,13 +87,6 @@
inline_service(ArrayAdapter::class),
abstract_arg('Debug-Flag'),
])
->set('annotations.psr_cache', PhpArrayAdapter::class)
->factory([PhpArrayAdapter::class, 'create'])
->args([
param('kernel.cache_dir').'/annotations.php',
service('cache.annotations'),
])
->tag('container.hot_path')
;
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Symfony\Component\Translation\Bridge\Crowdin\CrowdinProviderFactory;
use Symfony\Component\Translation\Bridge\Loco\LocoProviderFactory;
use Symfony\Component\Translation\Bridge\Lokalise\LokaliseProviderFactory;
use Symfony\Component\Translation\Bridge\PoEditor\PoEditorProviderFactory;
use Symfony\Component\Translation\Provider\NullProviderFactory;
use Symfony\Component\Translation\Provider\TranslationProviderCollection;
use Symfony\Component\Translation\Provider\TranslationProviderCollectionFactory;
Expand Down Expand Up @@ -63,14 +62,5 @@
service('translation.loader.xliff'),
])
->tag('translation.provider_factory')

->set('translation.provider_factory.poeditor', PoEditorProviderFactory::class)
->args([
service('http_client'),
service('logger'),
param('kernel.default_locale'),
service('translation.loader.xliff'),
])
->tag('translation.provider_factory')
;
};
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function createArgumentMetadata($controller): array
}

foreach ($reflection->getParameters() as $param) {
$attributes = [];
if (\PHP_VERSION_ID >= 80000) {
foreach ($param->getAttributes() as $reflectionAttribute) {
if (class_exists($reflectionAttribute->getName())) {
Expand All @@ -42,7 +43,7 @@ public function createArgumentMetadata($controller): array
}
}

$arguments[] = new ArgumentMetadata($param->getName(), $this->getType($param, $reflection), $param->isVariadic(), $param->isDefaultValueAvailable(), $param->isDefaultValueAvailable() ? $param->getDefaultValue() : null, $param->allowsNull(), $attributes ?? []);
$arguments[] = new ArgumentMetadata($param->getName(), $this->getType($param, $reflection), $param->isVariadic(), $param->isDefaultValueAvailable(), $param->isDefaultValueAvailable() ? $param->getDefaultValue() : null, $param->allowsNull(), $attributes);
}

return $arguments;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,18 @@ public function testMultipleAttributes()
$this->assertCount(1, $this->factory->createArgumentMetadata([new AttributeController(), 'multiAttributeArg'])[0]->getAttributes());
}

/**
* @requires PHP 8
*/
public function testIssue41478()
{
$arguments = $this->factory->createArgumentMetadata([new AttributeController(), 'issue41478']);
$this->assertEquals([
new ArgumentMetadata('baz', 'string', false, false, null, false, [new Foo('bar')]),
new ArgumentMetadata('bat', 'string', false, false, null, false, []),
], $arguments);
}

private function signature1(self $foo, array $bar, callable $baz)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ public function action(#[Foo('bar')] string $baz) {

public function multiAttributeArg(#[Foo('bar'), Undefined('bar')] string $baz) {
}

public function issue41478(#[Foo('bar')] string $baz, string $bat) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function setUserIdentifier(string $identifier): void
*/
public function setUsername(string $username)
{
trigger_deprecation('symfony/security-core', '5.3', 'Method "%s()" is deprecated, use getUserIdentifier() instead.', __METHOD__);
trigger_deprecation('symfony/security-core', '5.3', 'Method "%s()" is deprecated, use setUserIdentifier() instead.', __METHOD__);

$this->identifier = $username;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Serializer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"phpdocumentor/type-resolver": "<1.4.0",
"symfony/dependency-injection": "<4.4",
"symfony/property-access": "<4.4",
"symfony/property-info": "<4.4",
"symfony/property-info": "<5.3",
"symfony/yaml": "<4.4"
},
"suggest": {
Expand Down

This file was deleted.

3 changes: 0 additions & 3 deletions src/Symfony/Component/Translation/Bridge/PoEditor/.gitignore

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions src/Symfony/Component/Translation/Bridge/PoEditor/LICENSE

This file was deleted.

This file was deleted.

Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
0