File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
components/dependency_injection Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ pattern that points to a specific PHP class and method:
88
88
{
89
89
public function showAction($slug)
90
90
{
91
- $blog = // use the $slug varible to query the database
91
+ $blog = // use the $slug variable to query the database
92
92
93
93
return $this->render('AcmeBlogBundle:Blog:show.html.twig', array(
94
94
'blog' => $blog,
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ document::
262
262
$this->assertGreaterThan(0, $crawler->filter('h2.subtitle')->count());
263
263
264
264
// Assert that there are exactly 4 h2 tags on the page
265
- $this->assertCount(4, $crawler->filter('h2')->count() );
265
+ $this->assertCount(4, $crawler->filter('h2'));
266
266
267
267
// Assert that the "Content-Type" header is "application/json"
268
268
$this->assertTrue($client->getResponse()->headers->contains('Content-Type', 'application/json'));
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ each into some other service.
48
48
Registering a Compiler Pass
49
49
---------------------------
50
50
51
- You need to register your custom pass with the container. Tts process method
51
+ You need to register your custom pass with the container. Its process method
52
52
will then be called when the container is compiled::
53
53
54
54
use Symfony\Component\DependencyInjection\ContainerBuilder;
Original file line number Diff line number Diff line change 1
- How to Use a Factory to Create Services
2
- =======================================
1
+ Using a Factory to Create Services
2
+ ==================================
3
3
4
4
Symfony2's Service Container provides a powerful way of controlling the
5
5
creation of objects, allowing you to specify arguments passed to the constructor
Original file line number Diff line number Diff line change 1
- How to Manage Common Dependencies with Parent Services
2
- ======================================================
1
+ Managing Common Dependencies with Parent Services
2
+ =================================================
3
3
4
4
As you add more functionality to your application, you may well start to have
5
5
related classes that share some of the same dependencies. For example you
Original file line number Diff line number Diff line change 1
1
.. index ::
2
2
single: Service Container; Tags
3
3
4
- How to make your Services use Tags
5
- ==================================
4
+ Working with Tagged Services
5
+ ============================
6
6
7
7
Tags are a generic string (along with some options) that can be applied to
8
8
any service. By themselves, tags don't actually the functionality of your
You can’t perform that action at this time.
0 commit comments