Instafilter\Filter::__construct PHP Method

__construct() public method

public __construct ( array $configuration = [] )
$configuration array
    public function __construct(array $configuration = array())
    {
        $this->configuration = array_merge(array('imagemagick_dir' => '/usr/bin/'), $configuration);
        return $this;
    }

Usage Example

Example #1
0
 public function __construct($closure, $configuration)
 {
     parent::__construct($configuration);
     self::$_closure = $closure;
 }