Sorien / silex-idea-plugin

Idea plugin for Silex Framework - plugin is not compatible with PHPStorm 2016.2
MIT License
26 stars 8 forks source link

Routes autocomplete #26

Closed Sorien closed 8 years ago

Sorien commented 9 years ago
CarsonF commented 9 years ago
Haehnchen commented 9 years ago

just install symfony plugin, same syntax :)

CarsonF commented 9 years ago

@Haehnchen I forgot about this. But we would still need to add routes from silex syntax to your index/collection/whatever it's called, right?

Haehnchen commented 9 years ago

yaml and xml files are supported. you just need to implement the "binds".

$app->get('/', function () {
    return 'welcome to the homepage';
})
->bind('homepage');

If you then attach the php types to url_generator you are done. i can add an extension point for routes from external sources just ping me if you need to. i need them too by time.

$app['url_generator']->generate('homepage')
CarsonF commented 9 years ago

I'll let @Sorien hit you up when he's ready :)

Do you also provide completion for route parameters?

Haehnchen commented 9 years ago

yes, all in :)

Sorien commented 8 years ago

not planed