|
104 | 104 | use Symfony\Component\Console\Input\ArrayInput; |
105 | 105 | use PHPCR\Shell\Console\Command\Shell\ConfigInitCommand; |
106 | 106 | use PHPCR\Shell\Console\Helper\ConfigHelper; |
| 107 | +use Symfony\Component\Console\Input\StringInput; |
107 | 108 |
|
108 | 109 | class ShellApplication extends Application |
109 | 110 | { |
@@ -147,15 +148,15 @@ public function init() |
147 | 148 |
|
148 | 149 | $session = $this->initSession(); |
149 | 150 |
|
| 151 | + $this->getHelperSet()->set(new ConfigHelper()); |
150 | 152 | $this->getHelperSet()->set(new EditorHelper($this->session)); |
| 153 | + $this->getHelperSet()->set(new NodeHelper($this->session)); |
| 154 | + $this->getHelperSet()->set(new PathHelper($this->session)); |
151 | 155 | $this->getHelperSet()->set(new PhpcrConsoleDumperHelper()); |
152 | 156 | $this->getHelperSet()->set(new PhpcrHelper($this->session)); |
| 157 | + $this->getHelperSet()->set(new RepositoryHelper($this->session->getRepository())); |
153 | 158 | $this->getHelperSet()->set(new ResultFormatterHelper()); |
154 | 159 | $this->getHelperSet()->set(new TextHelper()); |
155 | | - $this->getHelperSet()->set(new NodeHelper($this->session)); |
156 | | - $this->getHelperSet()->set(new PathHelper($this->session)); |
157 | | - $this->getHelperSet()->set(new RepositoryHelper($this->session->getRepository())); |
158 | | - $this->getHelperSet()->set(new ConfigHelper()); |
159 | 160 |
|
160 | 161 | // add new commands |
161 | 162 | $this->add(new AccessControlPrivilegeListCommand()); |
@@ -241,24 +242,12 @@ public function init() |
241 | 242 | $ls = $this->get('dump'); |
242 | 243 | $ls->getDefinition()->getArgument('identifier')->setDefault(null); |
243 | 244 |
|
244 | | - $this->add($this->wrap(new NodeListCommand()) |
245 | | - ->setName('ls') |
246 | | - ); |
247 | | - $this->add($this->wrap(new PathChangeCommand()) |
248 | | - ->setName('cd') |
249 | | - ); |
250 | 245 | $this->add($this->wrap(new NodeRemoveCommand()) |
251 | 246 | ->setName('rm') |
252 | 247 | ); |
253 | 248 | $this->add($this->wrap(new NodesUpdateCommand()) |
254 | 249 | ->setName('update') |
255 | 250 | ); |
256 | | - $this->add($this->wrap(new NodeTouchCommand()) |
257 | | - ->setName('touch') |
258 | | - ); |
259 | | - $this->add($this->wrap(new NodeTypeRegisterCommand()) |
260 | | - ->setName('nt-register') |
261 | | - ); |
262 | 251 | $this->add($this->wrap(new WorkspacePurgeCommand()) |
263 | 252 | ->setName('workspace-purge') |
264 | 253 | ); |
|
0 commit comments