Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Jun 14, 2020
2 parents 26c5f3f + f12b0e2 commit 1084837
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"doctrine/persistence": "^1.3",
"sonata-project/datagrid-bundle": "^2.5",
"sonata-project/doctrine-extensions": "^1.5",
"sonata-project/form-extensions": "^1.2",
"sonata-project/form-extensions": "^0.1 || ^1.4",
"symfony/config": "^4.4",
"symfony/console": "^4.4",
"symfony/dependency-injection": "^4.4",
Expand All @@ -41,7 +41,8 @@
},
"conflict": {
"friendsofsymfony/rest-bundle": "<2.1 || >=3.0",
"sonata-project/admin-bundle": "<3.1"
"sonata-project/admin-bundle": "<3.1",
"sonata-project/core-bundle": "<3.20"
},
"require-dev": {
"enqueue/amqp-lib": "^0.8",
Expand Down
12 changes: 10 additions & 2 deletions src/Exception/InvalidParameterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@

namespace Sonata\NotificationBundle\Exception;

class InvalidParameterException extends \RuntimeException
{
use Sonata\CoreBundle\Exception\InvalidParameterException as CoreBundleException;

if (class_exists(CoreBundleException::class)) {
class InvalidParameterException extends CoreBundleException
{
}
} else {
class InvalidParameterException extends \RuntimeException
{
}
}
6 changes: 0 additions & 6 deletions src/SonataNotificationBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@

class SonataNotificationBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new NotificationCompilerPass());
}

/**
* {@inheritdoc}
*/
public function boot(): void
{
if (!\defined('AMQP_DEBUG')) {
Expand Down

0 comments on commit 1084837

Please sign in to comment.