swagger-api / swagger-api/swagger-codegen
[php-symfony] templates Controller::$container does not exists
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
$this->container property is missing in the Controller class.
I've got some idea to fix it, should I create a PR?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with modules/swagger-codegen/src/main/resources/php-symfony/Controller.mustache at line 139 and inspect the generated Symfony Controller class to confirm how the missing $container property is referenced. Done means the template no longer produces a Controller that references an unavailable property.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100