Skip to content

Commit

Permalink
added Demo video to README.md and fixed container bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mkusher committed Aug 23, 2015
1 parent e8c90ed commit f00fb19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ Symfony2 plugin for Padawan.php
Adds services' names completion and type detection after
`Symfony\Components\DependencyInjection\Container::get` and `Controller::get`.

# Demo

[![ScreenShot](http://i1.ytimg.com/vi/HTEExr9xCH4/maxresdefault.jpg)](https://www.youtube.com/watch?v=HTEExr9xCH4)

# Installation

Plugin name is `mkusher/padawan-symfony`, so you should call `plugin add` with
this name.

# Running

As of now, the only way to update services map is to `Generate Index`. After it
you'll be able to get services list and types detection.
4 changes: 1 addition & 3 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ protected function checkForContainerClass($fqcn, $index)
if (!$fqcn instanceof FQCN) {
return false;
}
if (in_array($fqcn->toString(), $this->containerNames)
&& $workingNode->name === 'get'
) {
if (in_array($fqcn->toString(), $this->containerNames)) {
return true;
}
$class = $index->findClassByFQCN($fqcn);
Expand Down

0 comments on commit f00fb19

Please sign in to comment.