phpcr / phpcr-utils

A set of helper classes and command line commands you want to use with phpcr, but that are not part of the API itself
phpcr.github.io
Other
72 stars 30 forks source link

make commands multiple sessions capable #20

Closed dbu closed 12 years ago

dbu commented 12 years ago

the commands should take an optional session name parameter and the phpcr helper should support multiple sessions. this would help a lot for example in symfony if you have more than one session.

configure would get

->addOption('session', null, InputOption::VALUE_OPTIONAL, 'The session to use for this command')

and the execute

$session = $this->getHelper('phpcr')->getSession($input->getOption('session'));
dbu commented 12 years ago

i noticed that for symfony, we do support multiple sessions in the commands that extend our base commands.