PhpStorm plugin that generates Nette factory interfaces
Java HTML
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
resources
src/cz/jiripudil/intellij/nette/factoryGenerator
.gitignore
LICENSE.md
README.md
intellij-nette-factory-generator.iml

README.md

Nette factory interface generator

Version Downloads

This plugin allows you to quickly generate factory interface for your components and other classes.

Installation and requirements

This plugin is written for PhpStorm 10 and above and is compiled for Java 8. You can find it in the Jetbrains plugin repository. Install it from Preferences → Plugins → Browse repositories... and search for it.

Usage

With cursor anywhere in a PHP class, press Alt + Enter to open the intentions selection. Choose "Generate service factory interface".

Intention menu

A dialog will pop up allowing you to change the name of the factory interface and pick which constructor parameters should be enumerated in the factory's create method.

Generate factory interface dialog

A new PHP file will then be created in the same directory, based on your PHP File file template. It will contain the factory interface, residing in the same namespace as the original class.

Generated factory interface