Skip to content

Commit f00fb19

Browse files
committed
added Demo video to README.md and fixed container bug
1 parent e8c90ed commit f00fb19

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ Symfony2 plugin for Padawan.php
44
Adds services' names completion and type detection after
55
`Symfony\Components\DependencyInjection\Container::get` and `Controller::get`.
66

7+
# Demo
8+
9+
[![ScreenShot](http://i1.ytimg.com/vi/HTEExr9xCH4/maxresdefault.jpg)](https://www.youtube.com/watch?v=HTEExr9xCH4)
10+
711
# Installation
812

913
Plugin name is `mkusher/padawan-symfony`, so you should call `plugin add` with
1014
this name.
15+
16+
# Running
17+
18+
As of now, the only way to update services map is to `Generate Index`. After it
19+
you'll be able to get services list and types detection.

src/Plugin.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ protected function checkForContainerClass($fqcn, $index)
7979
if (!$fqcn instanceof FQCN) {
8080
return false;
8181
}
82-
if (in_array($fqcn->toString(), $this->containerNames)
83-
&& $workingNode->name === 'get'
84-
) {
82+
if (in_array($fqcn->toString(), $this->containerNames)) {
8583
return true;
8684
}
8785
$class = $index->findClassByFQCN($fqcn);

0 commit comments

Comments
 (0)