performer / vagrant
Vagrant PHPStorm Command Line Tools Console
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
- symfony/symfony: ~2.6
Requires (Dev)
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2024-11-20 00:11:20 UTC
README
Symfony bundle -> Contain vagrant commands + Symfony and Doctrine Commands executed directly in "vagrant ssh --command 'bin/console some:command' "
Composer
Enable the Bundle in AppKernel.php
"require": { ... "performer/vagrant": "dev-master" }
// app/AppKernel.php
// use ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Performer\VagrantBundle\PerformerVagrantBundle(),
);
// ...
}
// ...
}
Use PHPStorm
Settings -> Command Line Tools Console -> + (new command) -> Choose Tool (Tool based on Symfony Console) -> Alias (v) -> Path to script (bin/vagrant)
Configuration example
You can configure default query parameter names and templates
performer_vagrant: defaults: remote_php_interpreter: /usr/bin/php remote_site_dir: /var/www remote_symfony_console: /bin/console users: remote_commands: ['Vendor\Path\Command', ... ]
Command example
vagrant ssh --command '/usr/bin/php /var/www/bin/console cache:clear --env=dev'