Skip to content

[2.2] Console Component Progress Documenation #1765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 609 commits into from
Oct 7, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
609 commits
Select commit Hold shift + click to select a range
e4f41e6
Merge pull request #1425 from nomack84/form_updates
weaverryan Jun 14, 2012
38a573f
Fixed syntax
danielec7 Jun 14, 2012
2164c0e
Fixed the class name for the UserPassword constraint
stof Jun 14, 2012
d27f4e5
$entityManager = $args->getManager();
piotrantosik Jun 15, 2012
292d0d7
Initial RTEL cookbook entry
merk Jun 16, 2012
6baa8fc
[Cookbook][Validation] Updated the cookbook to the latest Symfony2.1 …
aerialls Jun 17, 2012
4dd35de
[Cookbook][Validation] fixed: the getMessage() method does not exist
Jun 17, 2012
f86dc39
Merge pull request #1440 from stof/testing
weaverryan Jun 17, 2012
2ef93a4
Merge pull request #1442 from Dinduks/add_doc_for_escape_label
weaverryan Jun 17, 2012
d66e4d5
Fixing markup error
weaverryan Jun 14, 2012
558593c
[reference][forms] Tiny markup tweaks for #1442
weaverryan Jun 17, 2012
60637fd
Merge branch '2.0'
weaverryan Jun 17, 2012
b033740
Revert "Updated the doc for symfony/symfony#4497"
weaverryan Jun 17, 2012
a16022c
Reverting PR #1442 - this PR was merged prematurely. This reverts the…
weaverryan Jun 17, 2012
5a55dfa
Add Filesystem component documentation
romainneutron Jun 18, 2012
dd6e66c
Add documentation about the exists method
romainneutron Jun 18, 2012
00b8809
[Form] fixed reference to addViewTransformer() method call
shieldo Jun 18, 2012
b55b984
Merge branch '2.0'
weaverryan Jun 19, 2012
f4581f0
Merge pull request #1459 from iJanki/master
weaverryan Jun 19, 2012
6ea9f8b
Merge pull request #1439 from romainneutron/FileSystem
weaverryan Jun 20, 2012
266c9d4
[components][filesystem] Tweaks for #1439
weaverryan Jun 20, 2012
a69d572
[Form] fixed reference to setDefaultOptions method
shieldo Jun 20, 2012
7d678e0
Fixing a few more things in the filesystem component doc - thanks to …
weaverryan Jun 20, 2012
1cfd486
Removed the remainings getDefaultOptions methods mentions in the docs.
Jun 20, 2012
68da45b
Renamed buildViewBottomUp to finishView
Jun 20, 2012
0dd9de4
Update filesystem exceptions documentation
romainneutron Jun 20, 2012
fe0700f
Fixed documentation of collection prototype for symfony@98a7c0cf5f6ad…
lavoiesl Jun 20, 2012
d55a48d
Fixed documentation of collection prototype for symfony/symfony@98a7c…
lavoiesl Jun 20, 2012
cd3bd22
Merge branch 'master' of github.com:lavoiesl/symfony-docs
lavoiesl Jun 20, 2012
bc2feb7
Changed syntax of .getVar('prototype') to .vars.prototype as suggeste…
lavoiesl Jun 21, 2012
ec9b07f
updated reverse proxy example to include terminate() call on the kernel
shieldo Jun 21, 2012
934de43
Changed ->vars[prototype] for ->getVar(prototype) for PHP templating
lavoiesl Jun 21, 2012
9946be8
Removed versionadded notice about .get('prototype')
lavoiesl Jun 21, 2012
067881c
Merge pull request #1460 from stof/patch-2
weaverryan Jun 21, 2012
8a38300
Merge pull request #1464 from Antek88/patch-1
weaverryan Jun 23, 2012
ee627ff
Merge pull request #1468 from aerialls/patch-3
weaverryan Jun 23, 2012
10471ae
Removing the return value of ProtocolClassValidator due to ta 2.1 change
weaverryan Jun 23, 2012
da3938b
Merge branch '2.0'
weaverryan Jun 25, 2012
6bb5a35
Move FieldType options to FormType
Dinduks Jun 17, 2012
2efb055
Add a link to the Form field type
Dinduks Jun 25, 2012
6b3d9e6
Merge pull request #1470 from Dinduks/removal_of_options_in_fieldtype…
weaverryan Jun 25, 2012
de25843
"New in 2.1" description was not being rendered.
lazymanc Jun 25, 2012
f274823
Merge pull request #1498 from lazymanc/patch-1
weaverryan Jun 25, 2012
9f1d406
Fixing bad merge conflict resolution
weaverryan Jun 26, 2012
0459fd5
Fixing a few syntax errors
weaverryan Jun 26, 2012
29046f8
Removing a reference that does not exist yet - this references is par…
weaverryan Jun 26, 2012
110b4e9
Merge pull request #1466 from merk/rtel
weaverryan Jun 26, 2012
d3faf3b
[cookbook][doctrine] Modifications to the new entry about the Resolve…
weaverryan Jun 26, 2012
bbfaef1
Merge pull request #1473 from shieldo/transformer_fix
weaverryan Jun 26, 2012
8b083ad
Merge pull request #1476 from romainneutron/FileSystem
weaverryan Jun 26, 2012
d590450
Merge pull request #1477 from shieldo/patch-1
weaverryan Jun 26, 2012
f838f52
added "memcached" to the Caching driver in according with https://git…
liuggio Jun 27, 2012
a9824c6
Added documentation for the group_by option on the entity form type.
Jun 29, 2012
12744c1
[Cookbook\testing] Fixed issue #1508
wouterj Jun 30, 2012
6d3c1a5
Changed the wording a little bit
Jun 30, 2012
cb79c95
Merge pull request #1479 from nomack84/form_fixes
weaverryan Jul 3, 2012
3b570ea
Merge pull request #1486 from lavoiesl/master
weaverryan Jul 3, 2012
bf05af1
Merge pull request #1489 from shieldo/patch-2
weaverryan Jul 3, 2012
e80ac5c
Merge pull request #1503 from liuggio/patch-2
weaverryan Jul 3, 2012
e2c24fa
Merge branch '2.0'
weaverryan Jul 3, 2012
8a8faca
removed the charset setting which does not exist anymore
fabpot Jul 3, 2012
51e19ec
Spelling tweak, use the word "if" not "of"
jaywilliams Jul 3, 2012
d0363f9
Merge pull request #1511 from WouterJ/pr_for_1508
weaverryan Jul 4, 2012
07fcced
Merge branch '2.0'
weaverryan Jul 4, 2012
2335682
Merge pull request #1518 from symfony/charset-fix
weaverryan Jul 8, 2012
7a96f35
Merge pull request #1522 from jaywilliams/patch-1
weaverryan Jul 8, 2012
b4b7d2b
[Component][Finder]: info about getContents()
gajdaw Jul 9, 2012
c12aa85
Removed empty lines after versionadded headings
wheelsandcogs Jul 9, 2012
56bcbc3
[Yaml] Removed a deprecated note
lyrixx Jul 9, 2012
40b48dc
Merge branch '2.0'
weaverryan Jul 9, 2012
67621e0
[Twig reference] Changed the way label attributes are passed.
Jul 9, 2012
cd71cf9
Update on the modified code to reflect the Twig coding standards as w…
michaelperrin Jul 9, 2012
9aafdc2
Merge pull request #1540 from wheelsandcogs/fix_versionadded
weaverryan Jul 10, 2012
b007e54
Merge pull request #1541 from lyrixx/patch-3
weaverryan Jul 10, 2012
84cbe90
Enhancing YAML parsing note - see #1541
weaverryan Jul 10, 2012
c706424
Merge branch '2.0'
weaverryan Jul 10, 2012
4b662ec
Update session docs
Jul 13, 2012
6f2dc2b
raised the minimum version of PHP
fabpot Jul 13, 2012
9bd249a
Adapt the Built-in server command with Symfony 2.1 feature
athieriot Jul 13, 2012
d589305
change urls to make some consistency
athieriot Jul 13, 2012
ce797ed
Merge branch '2.0'
weaverryan Jul 14, 2012
426cfaf
[cookbook][form] Upgrading the data transformers cookbook to 2.1 afte…
weaverryan Jul 14, 2012
4f10eb3
[form] Fixing a bad reference and fixing a few deprecated form methods
weaverryan Jul 14, 2012
f0668c9
Merge branch '2.0'
weaverryan Jul 14, 2012
a54e8f4
[book][performance] Updating the APC autoloading portion for 2.1 - se…
weaverryan Jul 14, 2012
830a3e0
Removing references to bindRequest in favor of bind - see #1557
weaverryan Jul 14, 2012
1f4ef04
Merge branch '2.0'
weaverryan Jul 14, 2012
c3ed1d8
Removing 2.0-only note - see #1555
weaverryan Jul 14, 2012
27b2524
Merge branch '2.0'
weaverryan Jul 14, 2012
48c8089
Merge branch '2.0'
weaverryan Jul 14, 2012
ded03e3
Updating the event listener reference for Symfony 2.1 - see #1551
weaverryan Jul 14, 2012
0683a4b
Merge branch '2.0'
weaverryan Jul 14, 2012
f3474e1
Merge branch '2.0'
weaverryan Jul 14, 2012
5d68616
Merge branch '2.0'
weaverryan Jul 14, 2012
e2d911b
Fixing wrong transformer method name in upgrade notes - thanks to @stof
weaverryan Jul 14, 2012
bed3527
Fixing syntax error thanks to @stof
weaverryan Jul 14, 2012
c7f3353
Merge branch '2.0'
weaverryan Jul 14, 2012
cf7da60
Merge branch '2.0'
weaverryan Jul 14, 2012
f0a1342
Merge branch '2.0'
weaverryan Jul 15, 2012
47ac49b
Merge pull request #1542 from michaelperrin/twig_reference_fix
weaverryan Jul 15, 2012
8b943a0
Merge pull request #1509 from hansallis/entity_type_groupby
weaverryan Jul 15, 2012
64b3a50
Adding notes about loging out needing a route - see #1356
weaverryan Jul 15, 2012
05a858d
Merge pull request #1539 from gajdaw/finder_contents
weaverryan Jul 15, 2012
b46e4e5
Merge branch '2.0'
weaverryan Jul 15, 2012
68ecb4c
Merge remote-tracking branch 'origin/master'
weaverryan Jul 15, 2012
cbd0915
Revert "raised the minimum version of PHP"
fabpot Jul 15, 2012
5d97b5b
tweaked and simplified the first chapter of the quick tour
fabpot Jul 15, 2012
ee6a2ad
tweaked the min PHP version in the installation chapter
fabpot Jul 15, 2012
7ae5983
tweaked composer.phar create-project command
fabpot Jul 15, 2012
a64248a
Remove /web/ in urls
athieriot Jul 15, 2012
434b619
[Form] Virtual forms cookbook : added data_class and set virtual to t…
bamarni Jul 23, 2012
45653fb
Update cookbook/logging/monolog.rst
tolry Jul 24, 2012
1db4f19
[Doctrine] fixed getManager in repository
bamarni Jul 25, 2012
97d63b3
Update cookbook/logging/monolog.rst
tolry Jul 25, 2012
285f806
Merge branch 'server' of git://github.com/athieriot/symfony-docs into…
weaverryan Jul 26, 2012
cf6d58d
Merge pull request #1565 from drak/sessionsync
weaverryan Jul 26, 2012
5ca75eb
Merge pull request #1585 from bamarni/patch-4
weaverryan Jul 26, 2012
03be4a5
Merge branch '2.0'
weaverryan Jul 26, 2012
4ffc9ab
Luhn Validator
merk Jul 26, 2012
25e1f57
Tweak Range annotation code block
adrienbrault Jul 27, 2012
d76091c
Merge pull request #1588 from tolry/patch-1
weaverryan Jul 29, 2012
1342a06
Minor tweaks for #1588
weaverryan Jul 29, 2012
60e3e3c
Merge pull request #1592 from bamarni/patch-5
weaverryan Jul 29, 2012
dadf808
Merge branch '2.0'
weaverryan Jul 29, 2012
7da49bc
Merge branch '2.0'
weaverryan Jul 29, 2012
ad8557a
Merge branch '2.0'
weaverryan Jul 29, 2012
1cd3ead
[cookbook][doctrine] Updating the registration form cookbook entry fo…
weaverryan Jul 29, 2012
d0992e4
Merge pull request #1601 from adrienbrault/patch-4
weaverryan Jul 29, 2012
dc9278a
Update cookbook/form/data_transformers.rst
Jul 30, 2012
b90bdf8
Merge branch '2.0'
weaverryan Jul 30, 2012
76737e0
Merge branch '2.0'
weaverryan Jul 30, 2012
a1e1355
Merge pull request #1605 from spike31/patch-1
weaverryan Jul 30, 2012
ecda51f
added a note about exception handling with a special status code
fabpot Jul 31, 2012
40f5940
Change Size constraint to the new Length constraint
acasademont Jul 31, 2012
7449266
Added Count constraint docs and fixed bad formatting
acasademont Jul 31, 2012
1e58909
Merge pull request #1608 from symfony/exception-handling-note
weaverryan Aug 1, 2012
2267649
Mark that in Symfony2.1 we have PDO storage handler not storage like in
l3l0 Aug 2, 2012
3afe572
Merge pull request #1615 from l3l0/pdo-session-info-improvements
weaverryan Aug 4, 2012
cab7474
Merge pull request #1609 from acasademont/size-constraint-changes
weaverryan Aug 4, 2012
843b8ab
Minor tweak for #1609
weaverryan Aug 4, 2012
2dfaaf5
Merge branch '2.0'
weaverryan Aug 4, 2012
bbfbddb
Add the new "strict_requirements"
acasademont Aug 7, 2012
fb4d621
[Cookbook][Extension] Fixed typo in functions name
MattKetmo Aug 12, 2012
bb4ecba
[book][installation] Revisiting the Installation chapter with a fresh…
weaverryan Aug 12, 2012
472c4f0
[quick_tour] Tweaking the quick tour for consistency, composer
weaverryan Aug 12, 2012
f02a542
Merge pull request #1624 from acasademont/patch-1
weaverryan Aug 12, 2012
31bb8a9
[reference] Tweaking note about strict_requirements
weaverryan Aug 12, 2012
fe3a46d
Merge pull request #1628 from MattKetmo/config-typo
weaverryan Aug 12, 2012
8429e18
Merge branch '2.0'
weaverryan Aug 12, 2012
6af1aea
Added cascade_validation specification
agiuliano Aug 10, 2012
5d895a0
Merge pull request #1626 from bit-Shark/master
weaverryan Aug 12, 2012
7071858
Tweaks for #1626 and the cascade_validation option
weaverryan Aug 12, 2012
bc19fb2
Fixed GenericEvent method names
Aug 13, 2012
1f4a75f
Update book/controller.rst
ip512 Aug 15, 2012
08c57f9
Fixed a parameter's name.
elnur Aug 15, 2012
7f514f3
Added a missing comma after an array element.
elnur Aug 16, 2012
0e7e321
[book/doctrine] Transform parameters file to yml
wouterj Aug 17, 2012
e254aac
Clearify effects of flash message methods
endroid Aug 21, 2012
16d38ff
fixed a note about private services
bamarni Aug 23, 2012
92ce29b
Merge remote-tracking branch 'origin/installation-refactor'
weaverryan Aug 24, 2012
110249e
Fixing 2 small things thanks to @WouterJ and @Stof
weaverryan Aug 24, 2012
f2b8141
Merge pull request #1630 from thekarel/generic_event_method_names
weaverryan Aug 24, 2012
60a75a6
Remove references to verbose profiler option
ip512 Aug 24, 2012
8030a11
Merge pull request #1634 from ip512/patch-2
weaverryan Aug 25, 2012
48bafdc
Merge pull request #1635 from elnur/parameter-name-fix
weaverryan Aug 25, 2012
f28ef69
Merge pull request #1639 from WouterJ/parameter-yml-transform
weaverryan Aug 25, 2012
d28f8f8
Merge pull request #1650 from ip512/patch-4
weaverryan Aug 25, 2012
10598b9
Merge branch '2.0'
weaverryan Aug 25, 2012
ca8d884
Update cookbook/logging/channels_handlers.rst
beberlei Aug 26, 2012
4dc6a36
Merge pull request #1654 from beberlei/patch-1
weaverryan Aug 26, 2012
7cc08f4
[#1654] Tweaking comments in channel handlers doc to point to reference
weaverryan Aug 26, 2012
1d7e7cc
Update reference/constraints/Image.rst
Bieleke Aug 27, 2012
88e8949
Update reference/constraints/Image.rst
Bieleke Aug 27, 2012
65be337
Update flashbag syntax and add note on flash session lifetime
endroid Aug 27, 2012
401922a
Minor terminology change
endroid Aug 27, 2012
b94043d
Add Brazilian Portuguese translation git repository
andreia Aug 28, 2012
b48ff95
routing name updated according to new bundle generator and routing ma…
petk Aug 28, 2012
271f073
Merge pull request #1642 from endroid/patch-1
weaverryan Sep 2, 2012
d0b5042
[#1642] Minor tweaks
weaverryan Sep 2, 2012
a708102
Merge pull request #1646 from bamarni/patch-2
weaverryan Sep 2, 2012
a2b1eff
Merge pull request #1656 from Bieleke/patch-1
weaverryan Sep 2, 2012
c31229d
Merge pull request #1657 from Bieleke/patch-2
weaverryan Sep 2, 2012
c55f19d
Merge pull request #1658 from andreia/master
weaverryan Sep 2, 2012
931d576
Merge pull request #1659 from peterkokot/routing
weaverryan Sep 2, 2012
2571ab1
[Routing] remove wrong statement about unicode
Tobion Sep 8, 2012
6bd0613
[Routing] remove unicode statement in the book
Tobion Sep 8, 2012
374b891
Update reference/forms/types/repeated.rst
Aug 24, 2012
d7f01a1
[#1651] Fixing a removal of the options key, which should not have ha…
weaverryan Sep 9, 2012
a1aaeb5
Merge branch '2.0' into 2.1
weaverryan Sep 9, 2012
b9a6a45
Adding a description of the swiftmailer spooling type "memory"
Sgoettschkes Aug 31, 2012
0f692f0
Minor correction regarding the convention for internal links. Changin…
Sgoettschkes Sep 3, 2012
3d8fcae
[#1672] Breaking lines earlier, removing trailing space
weaverryan Sep 9, 2012
404e1f9
[#1672] Minor tweak
weaverryan Sep 9, 2012
bf72f2c
Merge branch '2.0' into 2.1
weaverryan Sep 9, 2012
b59c01f
updated bundle links
schmittjoh Sep 9, 2012
a613c19
[HttpFoundation] Remove misleading documentation.
Sep 12, 2012
80c8e65
Merge branch '2.0' into 2.1
weaverryan Sep 14, 2012
67aea37
Update book/installation.rst
intrepion Sep 7, 2012
e101015
[#1688] Adding more information about specific version for create-pro…
weaverryan Sep 14, 2012
9118861
[#1688] Updating master to use dev-master when creating a project
weaverryan Sep 14, 2012
87b4948
Merge pull request #1689 from Tobion/patch-1
weaverryan Sep 14, 2012
7c0653a
Merge branch '2.0' into 2.1
weaverryan Sep 14, 2012
19bb0d8
fixed wrong namespace of UserPassword assert
sstok Sep 10, 2012
dd24ff7
[#1695] Fixing markup - missing space
weaverryan Sep 14, 2012
4a439e7
Merge branch '2.0' into 2.1
weaverryan Sep 14, 2012
2d491c3
Merge pull request #1703 from drak/patch-3
weaverryan Sep 14, 2012
54df338
Merge remote-tracking branch 'origin/2.1' into 2.1
weaverryan Sep 14, 2012
480896e
[#1703] Fixing a bit of the language
weaverryan Sep 14, 2012
c66d7da
Tidying up some of the DI related terminology in container aware even…
richardmiller-zz Sep 16, 2012
73bf780
Adding info on twig:lint console command
richardmiller-zz Sep 16, 2012
396a7a0
Adding version info for twig:lint command
richardmiller-zz Sep 16, 2012
8d52a7f
Adding info on router:match command
richardmiller-zz Sep 16, 2012
4c16275
Updated cookbook title to match the usual format and added index entries
richardmiller-zz Sep 17, 2012
a33a9c6
[#1709] Fixing flashbag template rendering in quick tour
weaverryan Sep 18, 2012
e03808c
Update components/event_dispatcher/introduction.rst
Sep 16, 2012
7aa94a2
Merge pull request #1714 from richardmiller/cleaning_up_di_terminology
weaverryan Sep 18, 2012
a9db208
Merge pull request #1719 from richardmiller/adding_info_on_twig_lint
weaverryan Sep 18, 2012
d33c890
Merge pull request #1720 from richardmiller/adding_info_on_router_match
weaverryan Sep 18, 2012
42ed2c6
Merge pull request #1724 from richardmiller/updating_cookbook_article…
weaverryan Sep 18, 2012
6365fde
updated documentation for the profiler usage in a functional test (re…
fabpot Sep 18, 2012
308c4a1
Merge pull request #1727 from symfony/profiler
weaverryan Sep 19, 2012
e753faa
Merge branch '2.0' into 2.1
weaverryan Sep 19, 2012
d06484c
Merge branch '2.1'
weaverryan Sep 19, 2012
0dcfe3c
Merge pull request #1598 from merk/luhn-validator
weaverryan Sep 22, 2012
d450a67
[#1598] Tweaks to new Luhn validator entry
weaverryan Sep 22, 2012
40a1fa3
Merge branch '2.0' into 2.1
weaverryan Sep 22, 2012
65f33b7
Merge branch '2.1'
weaverryan Sep 22, 2012
a10431e
removed extra "the" in text
jonathaningram Sep 20, 2012
da47606
Merge branch '2.0' into 2.1
weaverryan Sep 24, 2012
c893ed4
From adjective to adverb
greg0ire Sep 23, 2012
6fd1c27
Merge branch '2.1'
weaverryan Sep 24, 2012
b63750b
Merge branch '2.0' into 2.1
weaverryan Sep 29, 2012
ab0fb08
Merge branch '2.1'
weaverryan Sep 29, 2012
28e1113
Use isMethod instead of a direct comparison
acasademont Oct 2, 2012
052983f
[#1775] Changing to use the new Request::isMethod() when checking for…
weaverryan Oct 2, 2012
e741967
Merge branch '2.0' into 2.1
weaverryan Oct 3, 2012
c7ade79
Merge branch '2.1'
weaverryan Oct 3, 2012
41de7f3
Merge branch '2.0' into 2.1
weaverryan Oct 3, 2012
0dc7543
Update book/forms.rst
Sep 23, 2012
3803c0f
Merge branch '2.0' into 2.1
weaverryan Oct 3, 2012
65a9ff4
[Form][#1738] Updating block names and other changes for 2.1 compat
weaverryan Oct 3, 2012
7ee31a2
[Form][#1738] Tweaking more items in the form customizations
weaverryan Oct 3, 2012
4775365
[Form][#1738] Updating more form blocks for 2.1
weaverryan Oct 3, 2012
3d87527
Merge branch '2.0' into 2.1
weaverryan Oct 7, 2012
4a9d6a0
Update book/security.rst
weyandch Sep 25, 2012
5b7f8fb
Merge branch 'master' into 2.1
weaverryan Oct 7, 2012
d8ac9ba
Merge branch '2.0' into 2.1
weaverryan Oct 7, 2012
35c0255
Remove "s" from constraint as it's wrong path
tristanbes Sep 27, 2012
d0c8221
[component][console] Initial documentation to support symfony/symfony…
weaverryan Sep 29, 2012
bf1a6b3
[#1765] Making a few tweaks to the console progress update thanks to …
weaverryan Oct 7, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ working with forms, for example::
public function updateAction(Request $request)
{
$form = $this->createForm(...);
$form->bindRequest($request);

$form->bind($request);
// ...
}

Expand Down Expand Up @@ -449,7 +449,7 @@ object that's returned from that controller::
));

// ... further modify the response or return it directly

return $response;
}

Expand Down Expand Up @@ -478,7 +478,7 @@ value to each variable.
a shortcut for core Symfony2 functionality. A forward can be accomplished
directly via the ``http_kernel`` service. A forward returns a ``Response``
object::

$httpKernel = $this->container->get('http_kernel');
$response = $httpKernel->forward('AcmeHelloBundle:Hello:fancy', array(
'name' => $name,
Expand Down Expand Up @@ -517,7 +517,7 @@ The Symfony templating engine is explained in great detail in the

The ``renderView`` method is a shortcut to direct use of the ``templating``
service. The ``templating`` service can also be used directly::

$templating = $this->get('templating');
$content = $templating->render('AcmeHelloBundle:Hello:index.html.twig', array('name' => $name));

Expand Down Expand Up @@ -617,8 +617,8 @@ from any controller::
// in another controller for another request
$foo = $session->get('foo');

// set the user locale
$session->setLocale('fr');
// use a default value if the key doesn't exist
$filters = $session->get('filters', array());

These attributes will remain on the user for the remainder of that user's
session.
Expand All @@ -640,11 +640,11 @@ For example, imagine you're processing a form submit::
{
$form = $this->createForm(...);

$form->bindRequest($this->getRequest());
$form->bind($this->getRequest());
if ($form->isValid()) {
// do some sort of processing

$this->get('session')->setFlash('notice', 'Your changes were saved!');
$this->get('session')->getFlashBag()->add('notice', 'Your changes were saved!');

return $this->redirect($this->generateUrl(...));
}
Expand All @@ -663,19 +663,19 @@ the ``notice`` message:

.. code-block:: html+jinja

{% if app.session.hasFlash('notice') %}
{% for flashMessage in app.session.flashbag.get('notice') %}
<div class="flash-notice">
{{ app.session.flash('notice') }}
{{ flashMessage }}
</div>
{% endif %}
{% endfor %}

.. code-block:: php
<?php if ($view['session']->hasFlash('notice')): ?>

<?php foreach ($view['session']->getFlashBag()->get('notice') as $message): ?>
<div class="flash-notice">
<?php echo $view['session']->getFlash('notice') ?>
<?php echo "<div class='flash-error'>$message</div>" ?>
</div>
<?php endif; ?>
<?php endforeach; ?>

By design, flash messages are meant to live for exactly one request (they're
"gone in a flash"). They're designed to be used across redirects exactly as
Expand All @@ -694,7 +694,7 @@ headers and content that's sent back to the client::

// create a simple Response with a 200 status code (the default)
$response = new Response('Hello '.$name, 200);

// create a JSON-response with a 200 status code
$response = new Response(json_encode(array('name' => $name)));
$response->headers->set('Content-Type', 'application/json');
Expand Down
52 changes: 27 additions & 25 deletions book/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,23 @@ Configuring the Database

Before you really begin, you'll need to configure your database connection
information. By convention, this information is usually configured in an
``app/config/parameters.ini`` file:
``app/config/parameters.yml`` file:

.. code-block:: ini
.. code-block:: yaml

; app/config/parameters.ini
[parameters]
database_driver = pdo_mysql
database_host = localhost
database_name = test_project
database_user = root
database_password = password
# app/config/parameters.yml
parameters:
database_driver: pdo_mysql
database_host: localhost
database_name: test_project
database_user: root
database_password: password

# ...

.. note::

Defining the configuration via ``parameters.ini`` is just a convention.
Defining the configuration via ``parameters.yml`` is just a convention.
The parameters defined in that file are referenced by the main configuration
file when setting up Doctrine:

Expand Down Expand Up @@ -405,7 +407,7 @@ of the bundle:
$product->setPrice('19.99');
$product->setDescription('Lorem ipsum dolor');

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$em->persist($product);
$em->flush();

Expand Down Expand Up @@ -543,7 +545,7 @@ you have a route that maps a product id to an update action in a controller::

public function updateAction($id)
{
$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$product = $em->getRepository('AcmeStoreBundle:Product')->find($id);

if (!$product) {
Expand Down Expand Up @@ -607,7 +609,7 @@ Imagine that you want to query for products, but only return products that
cost more than ``19.99``, ordered from cheapest to most expensive. From inside
a controller, do the following::

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$query = $em->createQuery(
'SELECT p FROM AcmeStoreBundle:Product p WHERE p.price > :price ORDER BY p.price ASC'
)->setParameter('price', '19.99');
Expand Down Expand Up @@ -783,7 +785,7 @@ ordered alphabetically.

You can use this new method just like the default finder methods of the repository::

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$products = $em->getRepository('AcmeStoreBundle:Product')
->findAllOrderedByName();

Expand Down Expand Up @@ -977,7 +979,7 @@ Now, let's see the code in action. Imagine you're inside a controller::
// relate this product to the category
$product->setCategory($category);

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$em->persist($category);
$em->persist($product);
$em->flush();
Expand Down Expand Up @@ -1408,14 +1410,14 @@ For more information about Doctrine, see the *Doctrine* section of the

.. _`Doctrine`: http://www.doctrine-project.org/
.. _`MongoDB`: http://www.mongodb.org/
.. _`Basic Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html
.. _`Query Builder`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/query-builder.html
.. _`Doctrine Query Language`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/dql-doctrine-query-language.html
.. _`Association Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/association-mapping.html
.. _`Basic Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html
.. _`Query Builder`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html
.. _`Doctrine Query Language`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html
.. _`Association Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/association-mapping.html
.. _`DateTime`: http://php.net/manual/en/class.datetime.php
.. _`Mapping Types Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#doctrine-mapping-types
.. _`Property Mapping documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#property-mapping
.. _`Lifecycle Events documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/events.html#lifecycle-events
.. _`Reserved SQL keywords documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#quoting-reserved-words
.. _`Persistent classes`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#persistent-classes
.. _`Property Mapping`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#property-mapping
.. _`Mapping Types Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#doctrine-mapping-types
.. _`Property Mapping documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#property-mapping
.. _`Lifecycle Events documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#lifecycle-events
.. _`Reserved SQL keywords documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#quoting-reserved-words
.. _`Persistent classes`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#persistent-classes
.. _`Property Mapping`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#property-mapping
Loading