The bundle provides support to complement the console for Symfony2 in PhpStorm.
Instalation
Add the following lines in your deps
file:
[MarphiPhpStormSupportBundle]
git=git://github.com/marphi/PhpStormSupportBundle.git
target=bundles/Marphi/PhpStormSupportBundle
Run the vendors install script:
$ php bin/vendors install
Configuration
Add the Marphi
namespace to your autoloader:
<?php
// app/autoload.php
$loader->registerNamespaces(array(
// ...
'Marphi' => __DIR__.'/../vendor/bundles',
));
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Marphi\PhpStormSupportBundle\MarphiPhpStormSupportBundle(),
);
}
Generate config file
In project directory run script:
$ php app/console phpstorm:command:config > .idea/commandlinetools/Symfony2.xml
Now you must restart PhpStorm. When you add new bundles to your project you must execute again command to refresh config file.
Usage
Run Command Line Tools: SHIF+CTRL+X or Tools->Run Command...
Start typing