Yii3 - How to start

Comparing #15 with #16

Revision #16 was created by rackycz rackycz on Oct 8, 2025, 2:41:07 PM.

edit

Content

[...]
Now you can call the URL and see all the users. (If you entered some)
http://localhost:9080

> Note:
> You can also use Injector (and method `$injector->make()`) instead of ContainerInterface (and method `$container->get()`). Injector seems to allow you to pass input arguments if needed.

 
> PS: The input parameter of `new Query(ConnectionInterface $db)` is automatically provided as it is defined in DI. See the file you created earlier above: `config/common/di/db-mysql.php`