Fabien Potencier 3314cd546e minor #2214 Allow construction without constructor arguments (gnat42)
This PR was merged into the 1.x branch.

Discussion
----------

Allow construction without constructor arguments

Since we can dynamically add templates and its possible to not need to construct the loader without any initial templates. I've added the default argument to the constructor for simpler instantiation IE new Twig_Loader_Array();. This helps us on a project where we've extended the loader, and have no initial templates but need to add constructor parameters for no real reason.

Commits
-------

289f63c Allow construction without constructor arguments
2016-11-07 11:42:43 -08:00
2016-10-25 12:28:14 -07:00
2016-10-11 19:11:37 -07:00
2016-10-25 12:28:14 -07:00
2016-10-17 11:33:14 -07:00
2016-01-01 02:33:03 +01:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP, released under the new BSD license (code
and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: http://twig.sensiolabs.org/documentation
Languages
PHP 99.9%