Logo F2FInterview

Symfony Interview Questions

Q   |   QA
‹‹ previous123

Symfony is a web application framework written in PHP that follows the model–view–controller (MVC) paradigm. Released under the MIT license, Symfony is free software. The symfony-project.com website launched on October 18, 2005.

Symfony aims to speed up the creation and maintenance of web applications and to replace repetitive coding tasks. Installation has a few prerequisites: Unix, Linux, Mac OS or Microsoft Windows with a web server and PHP 5 installed. It is currently compatible with the following object-relational mappings: Propel and Doctrine.[2]

Symfony has low performance overheads when dealing with an environment that supports a PHP accelerator.

Symfony is aimed at building robust applications in an enterprise context, and aims to give developers full control over the configuration: from the directory structure to the foreign libraries, almost everything can be customized. To match enterprise development guidelines, Symfony is bundled with additional tools to help developers test, debug and document projects.

All you need to know is in the "Extending symfony" chapter of the symfony book. You can read it for symfony 1.0, 1.1 or 1.2. 

The dependency management is only available for symfony 1.1 and up.

Here is a package.xml snippet with some dependencies:

<!-- ... -->

  <dependencies>
    <required>
      <!-- ... -->

      <package>
        <name>sfWebBrowserPlugin</name>
        <channel>plugins.symfony-project.org</channel>
        <min>1.0.0</min>
        <max>1.1.0</max>
        <exclude>1.1.0</exclude>
      </package>
      <package>
        <name>sfFeed2Plugin</name>
        <channel>plugins.symfony-project.org</channel>
        <min>0.9.4</min>
        <max>1.0.0</max>
      </package>
    </required>
  </dependencies>

<!-- ... -->

When you upload a new release for a plugin, symfony inspects your package archive to extract some useful information. Most of them are contained in the package.xml file but you can embed some more information by following some conventions:

  •     The readme tab content comes from the conversion of the README file that must be at the root of the package. The content of this file must be in the Markdown format and will be converted in HTML automatically. You can test your README file by using the Markdown dingus.
  •     The license tab content comes from the LICENSE file. As for the README file, it must be at the root of the package.
  • Here is a package.xml snippet with a README file and a LICENSE file:

<!-- ... -->

<contents>
  <dir name="/">
    <file role="data" name="README" />
    <file role="data" name="LICENSE" />
  </dir>

  <!-- ... -->
</contents>

<!-- ... -->

‹‹ previous123

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: