8000 minor #25652 Clean up (carusogabriel) · symfony/symfony@e577288 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e577288

Browse files
minor #25652 Clean up (carusogabriel)
This PR was squashed before being merged into the 2.7 branch (closes #25652). Discussion ---------- Clean up | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - I've removed all white spaces and extra lines from our `markdown` files. Recently [I did it in our documentation](symfony/symfony-docs#8944), and thought would be interesting to replicate here 😄 Commits ------- acd0d7c Clean up
2 parents cff97c7 + acd0d7c commit e577288

File tree

8 files changed

+23
-27
lines changed

8 files changed

+23
-27
lines changed

UPGRADE-2.2.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* The `standalone` option is deprecated and will be replaced with the `strategy` option in 2.3.
2727
* The values `true`, `false`, `js` for the `standalone` option were deprecated and replaced respectively with the `esi`, `inline`, `hinclude` in 2.3.
2828

29-
3029
Before:
3130

3231
```jinja
@@ -43,7 +42,6 @@
4342
{{ render(controller('BlogBundle:Post:list', { 'limit': 2 }), { 'strategy': 'hinclude'}) }}
4443
```
4544

46-
4745
### HttpFoundation
4846

4947
* The MongoDbSessionHandler default field names and timestamp type have changed.

UPGRADE-2.5.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ Validator
245245
->getValidator();
246246
```
247247

248-
249248
Yaml Component
250249
--------------
251250

UPGRADE-2.7.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ Router
3232

3333
* The `getMatcherDumperInstance()` and `getGeneratorDumperInstance()` methods in the
3434
`Symfony\Component\Routing\Router` have been changed from `protected` to `public`.
35-
If you override these methods in a subclass, you will need to change your
35+
If you override these methods in a subclass, you will need to change your
3636
methods to `public` as well. Note however that this is a temporary change needed for
3737
PHP 5.3 compatibility only. It will be reverted in Symfony 3.0.
38-
38+
3939
Form
4040
----
4141

@@ -530,9 +530,9 @@ PropertyAccess
530530
Config
531531
------
532532

533-
* The `__toString()` method of the `\Symfony\Component\Config\ConfigCache` is marked as
533+
* The `__toString()` method of the `\Symfony\Component\Config\ConfigCache` is marked as
534534
deprecated in favor of the new `getPath()` method.
535-
535+
536536
Validator
537537
---------
538538

@@ -601,7 +601,7 @@ FrameworkBundle
601601
* The `templating.helper.assets` service was refactored and now returns an object of type
602602
`Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper` instead of
603603
`Symfony\Component\Templating\Helper\CoreAssetsHelper`. You can update your class definition
604-
or use the `assets.packages` service instead. Using the `assets.packages` service is the recommended
604+
or use the `assets.packages` service instead. Using the `assets.packages` service is the recommended
605605
way.
606606

607607
Before:
@@ -676,48 +676,48 @@ Form
676676

677677
* In order to fix a few regressions in the new `ChoiceList` implementation,
678678
a few details had to be changed compared to 2.7.
679-
680-
The legacy `Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface`
679+
680+
The legacy `Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface`
681681
now does not extend the new `Symfony\Component\Form\ChoiceList\ChoiceListInterface`
682682
anymore. If you pass an implementation of the old interface in a context
683683
where the new interface is required, wrap the list into a
684684
`LegacyChoiceListAdapter`:
685-
685+
686686
Before:
687-
687+
688688
```php
689689
use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
690-
690+
691691
function doSomething(ChoiceListInterface $choiceList)
692692
{
693693
// ...
694694
}
695-
695+
696696
doSomething($legacyList);
697697
```
698-
698+
699699
After:
700-
700+
701701
```php
702702
use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
703703
use Symfony\Component\Form\ChoiceList\LegacyChoiceListAdapter;
704-
704+
705705
function doSomething(ChoiceListInterface $choiceList)
706706
{
707707
// ...
708708
}
709-
709+
710710
doSomething(new LegacyChoiceListAdapter($legacyList));
711711
```
712-
712+
713713
The new `ChoiceListInterface` now has two additional methods
714714
`getStructuredValues()` and `getOriginalKeys()`. You should add these methods
715715
if you implement this interface. See their doc blocks and the implementation
716716
of the core choice lists for inspiration.
717-
717+
718718
The method `ArrayKeyChoiceList::toArrayKey()` was marked as internal. This
719719
method was never supposed to be used outside the class.
720-
720+
721721
The method `ChoiceListFactoryInterface::createView()` does not accept arrays
722722
and `Traversable` instances anymore for the `$groupBy` parameter. Pass a
723723
callable instead.

UPGRADE-3.0.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ UPGRADE FROM 2.x to 3.0
4949
`DebugClassLoader`. The difference is that the constructor now takes a
5050
loader to wrap.
5151

52-
5352
### Config
5453

5554
* The `__toString()` method of the `\Symfony\Component\Config\ConfigCache` class

src/Symfony/Bundle/SecurityBundle/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CHANGELOG
66

77
* Added the possibility to override the default success/failure handler
88
to get the provider key and the options injected
9-
* Deprecated the `security.context` service for the `security.token_storage` and
9+
* Deprecated the `security.context` service for the `security.token_storage` and
1010
`security.authorization_checker` services.
1111

1212
2.4.0

src/Symfony/Component/BrowserKit/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CHANGELOG
55
-----
66

77
* [BC BREAK] `Client::followRedirect()` won't redirect responses with
8-
a non-3xx Status Code and `Location` header anymore, as per
8+
a non-3xx Status Code and `Location` header anymore, as per
99
http://tools.ietf.org/html/rfc2616#section-14.30
1010

1111
* added `Client::getInternalRequest()` and `Client::getInternalResponse()` to

src/Symfony/Component/Config/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CHANGELOG
66

77
* added `ConfigCacheInterface`, `ConfigCacheFactoryInterface` and a basic `ConfigCacheFactory`
88
implementation to delegate creation of ConfigCache instances
9-
9+
1010
2.2.0
1111
-----
1212

src/Symfony/Component/OptionsResolver/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CHANGELOG
2525
* deprecated OptionsResolver::isKnown() in favor of isDefined()
2626
* [BC BREAK] OptionsResolver::isRequired() returns true now if a required
2727
option has a default value set
28-
* [BC BREAK] merged Options into OptionsResolver and turned Options into an
28+
* [BC BREAK] merged Options into OptionsResolver and turned Options into an
2929
interface
3030
* deprecated Options::overload() (now in OptionsResolver)
3131
* deprecated Options::set() (now in OptionsResolver)
@@ -36,7 +36,7 @@ CHANGELOG
3636
lazy option/normalizer closures now
3737
* [BC BREAK] removed Traversable interface from Options since using within
3838
lazy option/normalizer closures resulted in exceptions
39-
* [BC BREAK] removed Options::all() since using within lazy option/normalizer
39+
* [BC BREAK] removed Options::all() since using within lazy option/normalizer
4040
closures resulted in exceptions
4141
* [BC BREAK] OptionDefinitionException now extends LogicException instead of
4242
RuntimeException

0 commit comments

Comments
 (0)
0