Skip to content

Commit

Permalink
Commenting auto resolver.
Browse files Browse the repository at this point in the history
  • Loading branch information
trq committed Jan 23, 2013
1 parent 4f678cc commit 7c3b7d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Proem/Service/AssetManager.php
Expand Up @@ -236,6 +236,16 @@ protected function setParam($type, $index, $value, $override = false) {
}
}

/**
* Method to do the heavy lifting in relation to reolution of assets.
*
* In most cases this method returns an asset (object) or null. It can however be
* coherced into returning the results of a call to a method on the asst (object)
* itself by passing a method name along within the $params array indexed by "invoke".
*
* @param string $name
* @param array @params Any extra parameters.
*/
protected function autoResolve($name, $params)
{
$reflection = new \ReflectionClass($name);
Expand Down

0 comments on commit 7c3b7d7

Please sign in to comment.