Skip to content

Commit

Permalink
updates to new preperables api
Browse files Browse the repository at this point in the history
  • Loading branch information
woodworker committed Jun 22, 2015
1 parent e256de4 commit 1631394
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/p2ee/Partlets/PartletResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ public function __construct(DependencyInjectionContainer $dic) {

/**
* @param Requirement $requirement
* @param Preparer $preparer
* @throws \Exception
* @return Partlet
*/
public function resolve(Requirement $requirement, Preparer $preparer) {
public function resolve(Requirement $requirement) {
if (!($requirement instanceof PartletRequirement)) {
throw new \Exception('invalid requirement type for PartletResolver');
}
Expand All @@ -40,8 +39,6 @@ public function resolve(Requirement $requirement, Preparer $preparer) {
if (!($partlet instanceof Partlet)) {
throw new \Exception('given class is not a Partlet');
}

$preparer->prepare($partlet, $requirement->getPrefills());
return $partlet;
}

Expand Down

0 comments on commit 1631394

Please sign in to comment.