8e23dee03a
- Load JSON file and get bin-dir value: https://getcomposer.org/doc/articles/vendor-binaries.md - Update finder behaviour to avoid code duplication Signed-off-by: Stéphane HULARD <s.hulard@chstudio.fr>
19 lines
424 B
PHP
19 lines
424 B
PHP
<?php
|
|
/**
|
|
* PHPCI - Continuous Integration for PHP
|
|
*
|
|
* @copyright Copyright 2014, Block 8 Limited.
|
|
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
* @link https://www.phptesting.org/
|
|
*/
|
|
|
|
namespace PHPCI\Helper;
|
|
|
|
class UnixCommandExecutor extends BaseCommandExecutor
|
|
{
|
|
protected function findGlobalBinary($binary)
|
|
{
|
|
return trim(shell_exec('which ' . $binary));
|
|
}
|
|
}
|