Skip to content

Commit

Permalink
Merge pull request #24 from mkoula/annotations_to_builder
Browse files Browse the repository at this point in the history
Nette Frameworks in it's config file which generates DI Container is …
  • Loading branch information
arthens authored Aug 24, 2016
2 parents 061211e + d6b10ad commit d9551a0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/Thumbor/Url/BuilderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,30 @@ class BuilderFactory
private $server;
private $secret;

/**
* @param string $server
* @param string|null $secret
* @return BuilderFactory
*/
public static function construct($server, $secret=null)
{
return new self($server, $secret);
}

/**
* @param string $server
* @param string|null $secret
*/
public function __construct($server, $secret=null)
{
$this->server = $server;
$this->secret = $secret;
}

/**
* @param string $original
* @return Builder
*/
public function url($original)
{
return Builder::construct($this->server, $this->secret, $original);
Expand Down

0 comments on commit d9551a0

Please sign in to comment.