Skip to content

Commit

Permalink
Revert "Set translator from dependencies, not constructor"
Browse files Browse the repository at this point in the history
This reverts commit 0498e45.
  • Loading branch information
mducharme committed Feb 8, 2017
1 parent 0498e45 commit 8983ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Charcoal/Property/AbstractProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public function __construct(array $data = null)
{
$this->setLogger($data['logger']);
$this->setPdo($data['database']);
$this->setTranslator($data['translator']);

// Optional DescribableInterface dependencies
if (isset($data['property_factory'])) {
Expand All @@ -179,7 +180,6 @@ public function __construct(array $data = null)
*/
public function setDependencies(Container $container)
{
$this->setTranslator($container['translator']);
$this->setPropertyFactory($container['property/factory']);
$this->setMetadataLoader($container['metadata/loader']);
}
Expand Down

0 comments on commit 8983ff2

Please sign in to comment.