Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

проблема с SimpleController #4

Closed
ph1ex0n opened this issue May 14, 2020 · 4 comments
Closed

проблема с SimpleController #4

ph1ex0n opened this issue May 14, 2020 · 4 comments

Comments

@ph1ex0n
Copy link

ph1ex0n commented May 14, 2020

В примере с контроллером после вызова страницы http://**:/api/v1/counter появляется такая ошибка

public_html/comet.api>php app.php start


Server Listen Workers Status

Workerman[app.php] start in DEBUG mode
Callable Controllers\SimpleController does not exist^CWorkerman[app.php] stopping ...
Workerman[app.php] has been stopped

@gotzmann
Copy link
Owner

Обновил доки - в примере с контроллерами были ошибки. Сейчас все должно работать - и не забывайте composer update :)

@ph1ex0n
Copy link
Author

ph1ex0n commented May 19, 2020

не-а, не желает

public_html/comet.api>php app.php start
Server Listen Workers Status
Workerman[app.php] start in DEBUG mode
Callable App\Controllers\SimpleController does not exist^CWorkerman[app.php] stopping ...
Workerman[app.php] has been stopped
total 52
drwxrwxr-x 4 dad dad 4096 май 19 16:28 .
drwxrwxr-x 14 dad dad 4096 май 13 15:05 ..
drwxrwxr-x 3 dad dad 4096 май 14 05:49 src
drwxrwxr-x 10 dad dad 4096 май 19 16:26 vendor
-rwxrwxr-x 1 dad dad 415 май 19 16:28 app.php
-rw-rw-r-- 1 dad dad 121 май 14 05:44 composer.json
-rw-rw-r-- 1 dad dad 25042 май 19 16:26 composer.lock

@ph1ex0n
Copy link
Author

ph1ex0n commented May 19, 2020

ещё и

public_html/comet.api>php app.php start
PHP Fatal error: Uncaught Error: Class 'Comet\Comet' not found in public_html/comet.api/app.php:9
Stack trace:
#0 {main}
thrown in public_html/comet.api/app.php on line 9

@gotzmann
Copy link
Owner

ещё и

public_html/comet.api>php app.php start
PHP Fatal error: Uncaught Error: Class 'Comet\Comet' not found in public_html/comet.api/app.php:9
Stack trace:
#0 {main}
thrown in public_html/comet.api/app.php on line 9

Похоже, composer.json не настроен корректно (секция autoload -> psr-4), или не запущена команда composer install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants