Working with Silex / Pimple: Code Completion

I've recently started using the Silex framework and am wondering if there are any tips on getting code completion playing nicely.

They use Array Access for their "Application" class, so for example an instance of Twig would be availble via the key 'twig'.

Is there any way to tell the IDE for given class what array keys are available and what types of objects they are?

Also if anyone has any general suggestions for code completion in Silex I am interested.



1 comment
Comment actions Permalink

Hi Christian,

AFAIK you cannot (unless there exist some special plugin that supports that framework). You can only do this via intermediate variable and PHPDoc type hint (which can be a bit too much in some cases).

As far as I understand this is the right ticket to watch (hopefully they will implement it one day, no idea when though):


Please sign in to leave a comment.