08th Dec, 2019
Below are few major features of Symfony
Q1. What is Symfony?
Symfony is PHP based web framework and set of reusable components.It was authored by Fabien Potencier and released under MIT license.
Q2. Enlist major features of Symfony?
Below are the few major features and improvements done in Symfony 4.3
Read more from Symfony 4.3 curated new features
Q3. Which template engine Symfony uses?
Symfony uses twig template engine. Twig is a flexible, fast, and secure and opensource template engine for PHP and originates its syntax from Jinja and Django templates. It is licensed under a BSD License and maintained by Fabien Potencier.
Q4. What is minimum requirement to install Symfony?
The minimum requirement to install Symfony Framework is
Q5. How to check installed version of Symfony?
If you have access to the command line then you can use
php bin/console about command to view the installed version of the Symfony framework.
You can get the version of Symfony in symfony/src/Symfony/Component/HttpKernel/Kernel.php file.
Q6. What are bundles in Symfony?
The Symfony bundle is a collection of organized files and folders that are modeled in a specified structure. Bundles can be reused in multiple applications. Everything in Symfony is a bundle.
Q7. What are Descriptors in Symfony?
Descriptors are objects in Symfony that are used to render documentation and information on Console.
Q8. What is a controller in Symfony?
Controller in Symfony is class which accepts requests and return a Response object.DefaultController class in Symfony is located in the src/AppBundle/Controller directory.
Q9. Enlist few form helper functions of Symfony?
Below we have listed some form helper functions of Symfony Framework
Q10. How to set and get Session in Symfony2?
Below is sample code to set and get Session in Symfony2
use Symfony\Component\HttpFoundation\Session\Session; $session = new Session(); $session->start(); // set and get session attributes $session->set('name', 'Drak'); $session->get('name');