8000 sync upgrade file for Symfony 4.0 between branches by xabbuh · Pull Request #24092 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

sync upgrade file for Symfony 4.0 between branches #24092

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

Merged
merged 1 commit into from
Sep 4, 2017
Merged
Changes from all commits
Commits
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
30 changes: 29 additions & 1 deletion UPGRADE-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ DependencyInjection
<service id="Doctrine\Common\Annotations\Reader" alias="annotations.reader" public="false" />
```

* Service identifiers are now case sensitive.
* Service identifiers and parameter names are now case sensitive.

* The `Reference` and `Alias` classes do not make service identifiers lowercase anymore.

Expand Down Expand Up @@ -391,6 +391,9 @@ FrameworkBundle
fully-qualified class name of your Kernel or override the `KernelTestCase::createKernel()`
or `KernelTestCase::getKernelClass()` method instead.

* The methods `KernelTestCase::getPhpUnitXmlDir()` and `KernelTestCase::getPhpUnitCliConfigArgument()`
have been removed.

* The `Symfony\Bundle\FrameworkBundle\Validator\ConstraintValidatorFactory` class has been removed.
Use `Symfony\Component\Validator\ContainerConstraintValidatorFactory` instead.

Expand Down Expand Up @@ -541,6 +544,8 @@ Process
* Extending `Process::run()`, `Process::mustRun()` and `Process::restart()` is
not supported anymore.

* The `getEnhanceWindowsCompatibility()` and `setEnhanceWindowsCompatibility()` methods of the `Process` class have been removed.

ProxyManager
------------

Expand All @@ -557,6 +562,8 @@ Security
* The `AccessDecisionManager::setVoters()` method has been removed. Pass the
voters to the constructor instead.

* Support for defining voters that don't implement the `VoterInterface` has been removed.

SecurityBundle
--------------

Expand Down Expand Up @@ -683,6 +690,21 @@ Validator
}
```

* Setting the `checkDNS` option of the `Url` constraint to `true` is dropped
in favor of `Url::CHECK_DNS_TYPE_*` constants values.

Before:

```php
$constraint = new Url(['checkDNS' => true]);
```

After:

```php
$constraint = new Url(['checkDNS' => Url::CHECK_DNS_TYPE_ANY]);
```

VarDumper
---------

Expand Down Expand Up @@ -716,6 +738,12 @@ VarDumper
VarDumperTestTrait::assertDumpMatchesFormat($dump, $data, $filter = 0, $message = '');
```

WebProfilerBundle
-----------------

* Removed the `getTemplates()` method of the `TemplateManager` class in favor
of the `getNames()` method

Workflow
--------

Expand Down
0