Skip to content

Commit

Permalink
Merge pull request #6822 from laboro/fix/CRM-4214
Browse files Browse the repository at this point in the history
CRM-4214: MailChimp performance investigation
  • Loading branch information
x86demon committed Feb 15, 2016
2 parents fc7b66a + fa4fab8 commit 6fb8643
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Oro/Bundle/CronBundle/Job/Daemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Symfony\Component\Process\Process;

use Symfony\Component\Process\PhpExecutableFinder;
use Oro\Bundle\InstallerBundle\Process\PhpExecutableFinder;

class Daemon
{
Expand Down
2 changes: 1 addition & 1 deletion src/Oro/Bundle/DistributionBundle/Script/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Finder\SplFileInfo;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process;
use Symfony\Component\Process\PhpExecutableFinder;
use Oro\Bundle\InstallerBundle\Process\PhpExecutableFinder;

class Runner
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
use Symfony\Component\Process\Process;
use Symfony\Component\Process\ProcessBuilder;
use Symfony\Component\Process\PhpExecutableFinder;
use Oro\Bundle\InstallerBundle\Process\PhpExecutableFinder;

use Oro\Bundle\CacheBundle\Manager\OroDataCacheManager;

Expand Down
2 changes: 1 addition & 1 deletion src/Oro/Bundle/InstallerBundle/CommandExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
use Symfony\Component\Process\Process;
use Symfony\Component\Process\ProcessBuilder;
use Symfony\Component\Process\PhpExecutableFinder;
use Oro\Bundle\InstallerBundle\Process\PhpExecutableFinder;

use Oro\Bundle\CacheBundle\Manager\OroDataCacheManager;

Expand Down
34 changes: 34 additions & 0 deletions src/Oro/Bundle/InstallerBundle/Process/PhpExecutableFinder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

namespace Oro\Bundle\InstallerBundle\Process;

use Symfony\Component\Process\PhpExecutableFinder as BasePhpExecutableFinder;

/**
* @deprecated since 1.9 use PHP_PATH instead
*
* @see \Symfony\Component\Process\PhpExecutableFinder
*/
class PhpExecutableFinder
{
/** @var BasePhpExecutableFinder */
protected $finder;

public function __construct()
{
$this->finder = new BasePhpExecutableFinder();
}

/**
* @see \Symfony\Component\Process\PhpExecutableFinder::find
*/
public function find($includeArgs = true)
{
$php = getenv('ORO_PHP_PATH');
if ($php && is_executable($php)) {
return $php;
}

return $this->finder->find($includeArgs);
}
}

0 comments on commit 6fb8643

Please sign in to comment.