Skip to content

Latest commit

 

History

History
81 lines (47 loc) · 1.39 KB

README.md

File metadata and controls

81 lines (47 loc) · 1.39 KB

MarphiPhpStormSupportBundle

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...

Command Line Tools

Start typing

Complement console of Symfony2 in PHPStorm