FireSymfony: Installing and Configuring the Plugin

In the previous post we went through the features provided by FireSymfony. In this post we are going to see how to install the Firefox Add On and the symfony plugin.

Plugin Installation

To install the symfony plugin go to your project root folder and type in the command line:

> php symfony plugin:install firesymfonyPlugin

If you're used to install plugins using svn externals, you can obtain the plugin code from here

Then edit your factories.yml file and enable FireSymfony under the all label like this:

     class: sfAggregateLogger
       level: debug
           class: sfWebDebugLogger
             level: debug
             condition:       %SF_WEB_DEBUG%
             xdebug_logging:  true
             web_debug_class: fsWebDebugForSf12
           class: sfFileLogger
             level: debug
             file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log

If you prefer you can configure FireSymfony for a specific environment.

The important line there is the web_debug_class configuration.

The on your databases.yml file and for the environment which needs debugging (usually will be dev) be sure that you setup the database class name as this:

classname: DebugPDO

In this way FireSymfony will be able to collect the query logs.

Add On Installation:

  1. Open Firefox and go to the Tools menu and click on Add-ons
  2. Select the Get Add-ons tab
  3. Enter FireSymfony in the search box and press enter
  4. Select and Install the add-on
  5. Restart Firefox

If you like to install the add on manually you can download it from here

If you point Firefox to myproject/fronted_dev.php it should show symfony debug information inside Firebug in the symfony tab. If you see the data there it means you succeed in the installation.


If you had problems installing FireSymfony you can ask for help in the mailing list

For reporting bugs please go to the Google Code project page if the issue hasn't been reported yet, please file it there.

You can find all those links together at the extension website which we plan to improve soon.

Thanks for reading so far and I hope to read your comments and suggestions here or at the FireSymfony mailing list.

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.

FireSymfony: Installing and Configuring the Plugin

Tweet this


DebugPDO looks like it is for Propel only. Is there an equivalent file for Doctrine?
You're missing one step: after installing the plugin, you should enable it in config/ProjectConfiguration.class.php, unless you use blacklist options for plugins (that's not recommended)
Ok! It's pretty cool but doesn't work when being redirected :/ the question is now how to uninstall it? I've tried to do php symfony plugin:uninstall firesymfonyPlugin but it just says it is not installed but the files are still there :S
@jeremy Please ask at the symfony users mailing list about Doctrine, I don't have experience with it

@Massimiliano thanks for the tip

@J_Wesker I will take a look into that issue
Little typo in factories sample:

web_debug_class: fsWebDebugForSf12
@jeremy DebugPDO works with Propel and Doctrine
@jeremy, there is no need to set DebugPDO for doctrine, the log will be enabled just like symfony logging, by set sf_debug & sf_logging_enabled to true.
Realy interesting, work perfectly with ff 3.5.3

But database query logger may be improved to replace :p1, :p2, ... with their value to be realy useful

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.