docs: rewrite README with quick start, usage guide and API reference#1
Open
avoreshin wants to merge 2 commits intoevas-php:mainfrom
Open
docs: rewrite README with quick start, usage guide and API reference#1avoreshin wants to merge 2 commits intoevas-php:mainfrom
avoreshin wants to merge 2 commits intoevas-php:mainfrom
Conversation
evasyakin
reviewed
Apr 21, 2026
| $this->classCustom(ProfileController::class) | ||
| ->methodPostfix('Action'); | ||
| }); | ||
| ``` |
Member
There was a problem hiding this comment.
Не хватает примера с не кастомным классом, чтобы и класс и метод вычислялись автоматически. Сгенерируй, пожалуйста, в эту доку
Пример из гайда (https://router.evas-php.com/guide/#%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80):
->autoByMethod('/api/v1', function () {
// автороутинг api
// /api/v1/user/list -> Controllers\Api\UserController->listAction()
// /api/v1/user/get -> Controllers\Api\UserController->getAction()
// /api/v1/user/save -> Controllers\Api\UserController->saveAction()
// /api/v1/company/list -> Controllers\Api\CompanyController->listAction()
$this->middleware([CheckAccess::isLogged()])
->classPrefix('Controllers\\Api\\')
->classPostfix('Controller')
->methodPostfix('Action')
->default('404json.php'); // обработчик по умолчанию для api
})
Member
|
Ещё можно ссылку на гайд добавить |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.