Example #1
0
 public function init($data)
 {
     $this->sourceFilename = $data['filename'];
     $this->convertSizes = $data['sizes'];
     $this->sourcePath = configParam('source_dir');
     $this->destPath = configParam('result_dir');
     return $this;
 }
Example #2
0
function getBeanstalk()
{
    $beanstalk = new Pheanstalk\Pheanstalk(configParam('beanstalk_host'));
    if (configParam('beanstalk_tube') == 'default') {
        $beanstalk->watch(configParam('beanstalk_tube'));
    } else {
        $beanstalk->watch(configParam('beanstalk_tube'))->ignore('default');
    }
    return $beanstalk;
}