Skip to content

Commit

Permalink
Merge pull request mautic#12199 from mollux/remove-WebfactoryExceptio…
Browse files Browse the repository at this point in the history
…nsBundle

Remove unused WebfactoryExceptionsBundle dev dependency
  • Loading branch information
escopecz authored Apr 11, 2023
2 parents 7f0ab56 + 9ecfd9a commit 292bc9d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 56 deletions.
3 changes: 1 addition & 2 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQ
return parent::handle($request, $type, $catch);
}

public function registerBundles(): array
public function registerBundles(): iterable
{
$bundles = [
// Symfony/Core Bundles
Expand Down Expand Up @@ -203,7 +203,6 @@ public function registerBundles(): array

if (in_array($this->getEnvironment(), ['dev', 'test'])) {
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Webfactory\Bundle\ExceptionsBundle\WebfactoryExceptionsBundle();
$bundles[] = new Fidry\PsyshBundle\PsyshBundle();
$bundles[] = new Symfony\Bundle\MakerBundle\MakerBundle();
}
Expand Down
4 changes: 0 additions & 4 deletions app/config/routing_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
$profiler->addPrefix('/_profiler');
$collection->addCollection($profiler);

//error pages
$errors = $loader->import('@WebfactoryExceptionsBundle/Resources/config/routing.yml');
$collection->addCollection($errors);

//main
$collection->addCollection($loader->import('routing.php'));

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"symfony/maker-bundle": "^1.38",
"symfony/phpunit-bridge": "~5.1.0",
"symfony/var-dumper": "~4.4.0",
"symfony/web-profiler-bundle": "~4.4.0",
"webfactory/exceptions-bundle": "~4.3"
"symfony/web-profiler-bundle": "~4.4.0"
},
"replace": {
"mautic/grapes-js-builder-bundle": "self.version",
Expand Down
49 changes: 1 addition & 48 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 292bc9d

Please sign in to comment.