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

Example from https://cycle-orm.dev/docs/intro-cli doesn't work #42

Closed
bautrukevich opened this issue Dec 30, 2019 · 2 comments
Closed

Comments

@bautrukevich
Copy link
Contributor

When I'm trying to start using example in "Very quick start section":

PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Cycle\ORM\Promise\ProxyFactory::__construct(), 0 passed in /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/bootstrap/src/Bootstrap.php on line 90 and at least 2 expected in /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/proxy-factory/src/Promise/ProxyFactory.php:55
Stack trace:
#0 /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/bootstrap/src/Bootstrap.php(90): Cycle\ORM\Promise\ProxyFactory->__construct()
#1 /Users/siarhei/Code/experiments/try-cycle-orm/bootstrap.php(33): Cycle\Bootstrap\Bootstrap::fromConfig(Object(Cycle\Bootstrap\Config))
#2 /Users/siarhei/Code/experiments/try-cycle-orm/config/cycle-cli.php(3): require_once('/Users/siarhei/...')
#3 /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/bootstrap/bin/cycle(26): require_once('/Users/siarhei/...')
#4 {main}
  thrown in /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/proxy-factory/src/Promise/ProxyFactory.php on line 55

Fatal error: Uncaught ArgumentCountError: Too few arguments to function Cycle\ORM\Promise\ProxyFactory::__construct(), 0 passed in /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/bootstrap/src/Bootstrap.php on line 90 and at least 2 expected in /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/proxy-factory/src/Promise/ProxyFactory.php on line 55

ArgumentCountError: Too few arguments to function Cycle\ORM\Promise\ProxyFactory::__construct(), 0 passed in /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/bootstrap/src/Bootstrap.php on line 90 and at least 2 expected in /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/proxy-factory/src/Promise/ProxyFactory.php on line 55

Call Stack:
    0.0006     398584   1. {main}() /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/bootstrap/bin/cycle:0
    0.0011     400008   2. require_once('/Users/siarhei/Code/experiments/try-cycle-orm/config/cycle-cli.php') /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/bootstrap/bin/cycle:26
    0.0012     403016   3. require_once('/Users/siarhei/Code/experiments/try-cycle-orm/bootstrap.php') /Users/siarhei/Code/experiments/try-cycle-orm/config/cycle-cli.php:3
    0.0050     677104   4. Cycle\Bootstrap\Bootstrap::fromConfig() /Users/siarhei/Code/experiments/try-cycle-orm/bootstrap.php:33
    0.0227    2199136   5. Cycle\ORM\Promise\ProxyFactory->__construct() /Users/siarhei/Code/experiments/try-cycle-orm/vendor/cycle/bootstrap/src/Bootstrap.php:90

I don't know yet, is its documentation or cycle/bootsrap issue?

Thank you.

@vvval
Copy link
Contributor

vvval commented Dec 30, 2019

Hi @bautrukevich ,
Please check new cycle/bootstrap v0.4.0 release with a fix

@bautrukevich
Copy link
Contributor Author

It works, thank you! : )

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