-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecated
Sonata\Doctrine\Bridge\Symfony\Bundle\SonataDoctrineBundle
- Loading branch information
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Sonata Project package. | ||
* | ||
* (c) Thomas Rabaix <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sonata\Doctrine\Bridge\Symfony; | ||
|
||
use Sonata\Doctrine\Bridge\Symfony\DependencyInjection\Compiler\AdapterCompilerPass; | ||
use Sonata\Doctrine\Bridge\Symfony\DependencyInjection\Compiler\MapperCompilerPass; | ||
use Sonata\Doctrine\Bridge\Symfony\DependencyInjection\SonataDoctrineExtension; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\HttpKernel\Bundle\Bundle; | ||
|
||
final class SonataDoctrineBundle extends Bundle | ||
{ | ||
public function build(ContainerBuilder $container) | ||
{ | ||
$container->addCompilerPass(new AdapterCompilerPass()); | ||
$container->addCompilerPass(new MapperCompilerPass()); | ||
} | ||
|
||
public function getPath() | ||
{ | ||
return __DIR__.'/..'; | ||
} | ||
|
||
protected function getContainerExtensionClass() | ||
{ | ||
return SonataDoctrineExtension::class; | ||
} | ||
} |