This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Bernhard Schussek a28151a8af [Form] Removed FormFactory and improved the form instantiation process
With the form factory there was no reasonable way to implement instantiation of custom form classes. So the implementation was changed to let the classes instantiate themselves. A FormContext instance with default settings has to be passed to the creation method. This context is by default configured in the DI container.

	$context = $this->get('form.context');
	// or
	$context = FormContext::buildDefault();
	$form = MyFormClass::create($context, 'author');

If you want to circumvent this process, you can also create a form manually. Remember that the services stored in the default context won't be available then unless you pass them explicitely.

	$form = new MyFormClass('author');
2011-02-01 15:27:12 +01:00
src/Symfony [Form] Removed FormFactory and improved the form instantiation process 2011-02-01 15:27:12 +01:00
tests [Form] Removed FormFactory and improved the form instantiation process 2011-02-01 15:27:12 +01:00
.gitignore Added vendor directory to .gitignore 2010-06-24 10:44:28 +02:00
autoload.php.dist fix autoload 2011-01-27 16:49:02 +01:00
install_vendors.sh Fix DoctrineMongoDBBundle to work with recent changes to Doctrine MongoDB ODM. 2010-12-03 00:06:29 +01:00
LICENSE added some Symfony 2 components 2010-01-04 15:26:20 +01:00
phpunit.xml.dist [DoctrineMongoDBBundle] fixed unit tests 2011-02-01 13:35:39 +01:00
README updated the README 2010-06-30 09:04:56 +02:00
update_vendors.sh Fix DoctrineMongoDBBundle to work with recent changes to Doctrine MongoDB ODM. 2010-12-03 00:06:29 +01:00

README
======

What is Symfony2?
-----------------

Symfony2 is a PHP 5.3 full-stack web framework. It is written with speed and
flexibility in mind. It allows developers to built better and easy to maintain
websites with PHP.

Symfony can be used to develop all kind of websites, from your personal blog
to high traffic ones like Dailymotion or Yahoo! Answers.

High Performance
----------------

Built with performance in mind, Symfony2 is one of the fastest PHP frameworks.
It is up to 3 times faster than symfony 1.4 or Zend Framework 1.10 and
consumes half the memory.

Requirements
------------

Symfony2 is only supported on PHP 5.3.2 and up.

Documentation
-------------

Symfony 2.0 is still in the early stages of development, but the
"[Quick Tour][1]" tutorial can get you started fast.

The "Quick Tour" tutorial barely scratches the surface of Symfony 2.0 but it
gives you a first feeling of the framework. If, like us, you think that
Symfony2 can help speed up your development and take the quality of your work
to the next level, visit the official [Symfony2 website][2] to learn more.

[1]: http://symfony-reloaded.org/learn
[2]: http://symfony-reloaded.org/