-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #293 from mcg-web/commands_optimizations
Commands fixes and optimizations
- Loading branch information
Showing
17 changed files
with
186 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace Overblog\GraphQLBundle\Command; | ||
|
||
use Overblog\GraphQLBundle\Request\Executor as RequestExecutor; | ||
|
||
trait RequestExecutorLazyLoaderTrait | ||
{ | ||
/** @var RequestExecutor */ | ||
private $requestExecutor; | ||
|
||
/** @var array */ | ||
private $requestExecutorFactory; | ||
|
||
public function setRequestExecutorFactory(array $requestExecutorFactory) | ||
{ | ||
$this->requestExecutorFactory = $requestExecutorFactory; | ||
} | ||
|
||
/** | ||
* @return RequestExecutor | ||
*/ | ||
protected function getRequestExecutor() | ||
{ | ||
if (null === $this->requestExecutor && null !== $this->requestExecutorFactory) { | ||
$this->requestExecutor = call_user_func_array(...$this->requestExecutorFactory); | ||
} | ||
|
||
return $this->requestExecutor; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
Tests/Functional/Command/fixtures/case-sensitive/debug-mutation.txt
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
Tests/Functional/Command/fixtures/case-sensitive/debug-resolver.txt
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
Tests/Functional/Command/fixtures/case-sensitive/debug-type.txt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.