yiisoft / yiisoft/data-response
Is there a way to return raw data from a controller?
Open
Nobody has claimed this yet.
type:docs
- Dominant language
- PHP
- Stars
- 19
- Forks
- 13
- Avg merge
- 1h 6m
- Merged PRs (30d)
- 1
Description
E.g. to return ['foo' => 'bar'] instead of
return $this->dataResponseFactory->create(['foo' => 'bar']);
In case it is, let's add corresponding configs and all the related code to documentation.
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 by reviewing how controllers currently create responses through dataResponseFactory and locate the existing configuration and documentation entry points. Determine whether returning raw controller data is supported, then document the relevant configuration and usage; done means the behavior and setup are clearly covered in the documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100