Describing components as phpDoc CWebApplication properties for auto complete?

Hello guys,

its really a big pain for me that I cant use auto complete for accessing components under Eclipse.

I had an idea to describe them as CWebApplication properties. I would create a file with a class that extends CWebApplication and just put public properties with the component names and php doc description instance of which object do they hold. Then include the file with that class and instead of:

Yii::createWebApplication($config)->run();

I would do:

$app = new WebApplication($config);

$app->run();

I havent tried this but I cant see a reason it would not work. The reason I’m asking here is if there is more elegant solution, that won’t require me to have this additional class and editing it every time I add or change a component?

Thank you!

Dimitar

First and last up of the thread. Anyone?