Skip to content

Commit

Permalink
Set "extra.symfony.bundles" property at composer.json in order to b…
Browse files Browse the repository at this point in the history
…e compatible with Symfony Flex
  • Loading branch information
phansys committed Jul 1, 2020
1 parent 4f26ac0 commit fc301ae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
9 changes: 7 additions & 2 deletions UPGRADE-1.x.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
UPGRADE 1.x
===========

### `Sonata\Doctrine\Bridge\Symfony\Bundle\SonataDoctrineBundle`

Deprecated `Sonata\Doctrine\Bridge\Symfony\Bundle\SonataDoctrineBundle`. Use `Sonata\Doctrine\Bridge\Symfony\SonataDoctrineBundle`
instead.

### `Sonata\Doctrine\Types\JsonType` has been deprecated

`doctrine/dbal` has a native implementation, `Doctrine\DBAL\Types\JsonType`, that
should be used instead.

### Tests

All files under the ``Tests`` directory are now correctly handled as internal test classes.
You can't extend them anymore, because they are only loaded when running internal tests.
All files under the ``Tests`` directory are now correctly handled as internal test classes.
You can't extend them anymore, because they are only loaded when running internal tests.
More information can be found in the [composer docs](https://getcomposer.org/doc/04-schema.md#autoload-dev).
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
},
"symfony": {
"bundles": {
"Sonata\\Doctrine\\Bridge\\Symfony\\SonataDoctrineBundle": [
"all"
]
}
}
},
"autoload": {
Expand Down
3 changes: 3 additions & 0 deletions src/Bridge/Symfony/Bundle/SonataDoctrineBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* @deprecated Since sonata-project/doctrine-extensions 1.x, to be removed in 2.0. Use Sonata\Doctrine\Bridge\Symfony\SonataDoctrineBundle instead.
*/
final class SonataDoctrineBundle extends Bundle
{
public function build(ContainerBuilder $container)
Expand Down

0 comments on commit fc301ae

Please sign in to comment.