Skip to content

Commit 6ff4fa0

Browse files
committed
update doc for > 0.10.3x
1 parent b9561ed commit 6ff4fa0

File tree

6 files changed

+73
-1
lines changed

6 files changed

+73
-1
lines changed

actions/container_builder.png

22 KB
Loading

actions/container_builder_context.png

2.87 KB
Loading

actions/index.rst

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. index::
2+
single: Actions
3+
4+
Actions
5+
========================
6+
7+
Service Builder
8+
-------------------------
9+
.. image:: container_builder.png
10+
.. image:: container_builder_context.png
11+
12+
.. code-block:: php
13+
14+
# Symfony\Bundle\FrameworkBundle\Controller\Controller::generateUrl
15+
namespace Acme\FooBundle;
16+
class Foo extends ContainerAware {}
17+
class Foo {}
18+
19+
* ``action`` - Class definition name or context of yaml or yml
20+

index.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ Navigation
2121
languages/yaml/index
2222
languages/xml/index
2323
extension/method_parameter
24-
extension/signature_type
24+
extension/signature_type
25+
actions/index
Loading

languages/php/index.rst

+51
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,16 @@ Container Builder
105105
106106
* ``goto`` - tags: all tagged services
107107

108+
.. note::
109+
All ContainerBuilder calls provides access to service-index which includes private ones
108110

109111
Doctrine
110112
-------------------------
111113

112114
.. code-block:: php
113115
116+
$em->getRepository(Entity::class);
117+
$em->getRepository($this->foo);
114118
$em->getRepository('<FooBundle:Entity>');
115119
116120
* ``goto`` - Go to entity class
@@ -185,6 +189,15 @@ Routing
185189
* ``goto`` - Controller action method
186190
* ``complete`` - Controller names of Bundle structure or controller services as shortcut
187191

192+
.. code-block:: php
193+
194+
# Symfony\Bundle\FrameworkBundle\Controller\Controller::forward
195+
# Symfony\Bundle\FrameworkBundle\Controller\Controller::generateUrl
196+
$this->generateUrl('<controller_action>', array('<parameter>' => 'test'))
197+
198+
* ``goto`` - Method Parameter
199+
* ``complete`` - Parameters of route
200+
188201

189202
Forms
190203
-------------------------
@@ -254,6 +267,27 @@ Forms
254267
* ``complete`` - all matched form options
255268

256269

270+
.. code-block:: php
271+
272+
# Symfony\Component\Form\FormFactory::create
273+
# Symfony\Component\Form\FormFactory::createNamedBuilder
274+
# Symfony\Bundle\FrameworkBundle\Controller\Controller::createForm
275+
$this->createForm('button', "type", array(
276+
'<option>' => 'foo'
277+
));
278+
279+
* ``goto`` - array definition of option
280+
* ``complete`` - all matched form options
281+
282+
.. note::
283+
Types are resolve on parents and other condition
284+
285+
.. code-block:: php
286+
287+
# \Symfony\Component\Form\Form::get
288+
# \Symfony\Component\Form\Form::has
289+
$form->get('<foo>');
290+
257291
EventDispatcher
258292
-------------------------
259293
.. code-block:: php
@@ -284,3 +318,20 @@ Class
284318

285319
* ``lineMarker`` - Mark line and provide goto if a service is known definition
286320
* ``goto`` - class service definition
321+
322+
.. note::
323+
Includes private services
324+
325+
Related Files
326+
-------------------------
327+
328+
Controller method provide related files popover as line marker
329+
330+
.. code-block:: php
331+
332+
public function indexAction() {}
333+
334+
.. image:: controller_method_related_files.png
335+
336+
* ``lineMarker`` - Provide related file like routes and templates
337+

0 commit comments

Comments
 (0)