This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Feb 24, 2013 5:23 PM by Andriy Bazanov  
Christian Magill Newbie 16 posts since
Sep 10, 2011
Currently Being Moderated

Feb 24, 2013 6:00 AM

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.

 

Thanks,

 

Chris

Andriy Bazanov Master 3,899 posts since
May 28, 2010
Currently Being Moderated
Feb 24, 2013 5:23 PM in response to: Christian Magill
Re: Working with Silex / Pimple: Code Completion

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): http://youtrack.jetbrains.com/issue/WI-6027

More Like This

  • Retrieving data ...