Skip to content
Permalink
Browse files

Make code a bit DRYer.

  • Loading branch information...
ADmad committed Sep 14, 2014
1 parent fa16a31 commit 60c0acff50cf1ca1fcf2a9f287245034b46b3602
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/Controller/Controller.php
@@ -459,8 +459,7 @@ protected function _loadComponents() {
$registry = $this->components();
$components = $registry->normalizeArray($this->components);
foreach ($components as $properties) {
list(, $class) = pluginSplit($properties['class']);
$this->{$class} = $registry->load($properties['class'], $properties['config']);
$this->addComponent($properties['class'], $properties['config']);
}
}

0 comments on commit 60c0acf

Please sign in to comment.
You can’t perform that action at this time.