Skip to content

Commit

Permalink
Clean-up dependencies in AdminWidget
Browse files Browse the repository at this point in the history
The 'view' service is provided by the parent class `AbstractWidget`.
  • Loading branch information
mcaskill authored Nov 9, 2022
1 parent 1a31df1 commit 9564218
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/admin/src/Charcoal/Admin/AdminWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Pimple\Container;
// From 'charcoal-factory'
use Charcoal\Factory\FactoryInterface;
// From 'charcoal-translator'
// From 'charcoal-translator'x
use Charcoal\Translator\Translation;
use Charcoal\Translator\TranslatorAwareTrait;
// From 'charcoal-user'
Expand Down Expand Up @@ -469,7 +469,6 @@ protected function setDependencies(Container $container)

// Satisfies AdminWidget dependencies
$this->setModelFactory($container['model/factory']);
$this->setView($container['view']);
}

/**
Expand Down

0 comments on commit 9564218

Please sign in to comment.