We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f3f06 commit bd8498dCopy full SHA for bd8498d
src/PHPCR/Shell/Console/Application/EmbeddedApplication.php
@@ -13,6 +13,8 @@
13
14
use PHPCR\Shell\DependencyInjection\Container;
15
use PHPCR\Shell\PhpcrShell;
16
+use PHPCR\Shell\Console\Input\StringInput;
17
+use Symfony\Component\Console\Output\OutputInterface;
18
19
/**
20
* Subclass of the full ShellApplication for running as an EmbeddedApplication
@@ -50,4 +52,10 @@ protected function getDefaultCommand()
50
52
{
51
53
return $this->container->getMode() === PhpcrShell::MODE_EMBEDDED_SHELL ? 'shell:path:show' : 'list';
54
}
55
+
56
+ public function runWithStringInput($stringInput, OutputInterface $output)
57
+ {
58
+ $input = new StringInput($stringInput);
59
+ $this->run($input, $output);
60
+ }
61
0 commit comments