Skip to content

Commit

Permalink
Allow the locator to be configured
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikbjorn committed Nov 13, 2014
1 parent 3233179 commit dada9d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/LoaderBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ public static function create(array $paths, $cacheDir = null, $debug = false)
return new self($paths, $cacheDir, $debug);
}

public function configureLocator(callable $callable)
{
$callable($this->locator);

return $this;
}

public function configureNormalizers(callable $callable)
{
$this->normalizerConfigured = true;
Expand Down

0 comments on commit dada9d8

Please sign in to comment.