diff --git a/docs/async/coroutines.md b/docs/async/coroutines.md index c2035d9..e041e95 100644 --- a/docs/async/coroutines.md +++ b/docs/async/coroutines.md @@ -15,7 +15,7 @@ Let's take a look at the most basic coroutine usage by using an require __DIR__ . '/../vendor/autoload.php'; -$credentials = 'alice:secret@localhost/bookstore?idle=0.001'; +$credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); @@ -59,7 +59,7 @@ shown in a simple example: require __DIR__ . '/../vendor/autoload.php'; -$credentials = 'alice:secret@localhost/bookstore?idle=0.001'; +$credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); diff --git a/docs/async/fibers.md b/docs/async/fibers.md index 9617994..a5bb530 100644 --- a/docs/async/fibers.md +++ b/docs/async/fibers.md @@ -17,7 +17,7 @@ use function React\Async\await; require __DIR__ . '/../vendor/autoload.php'; -$credentials = 'alice:secret@localhost/bookstore?idle=0.001'; +$credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); diff --git a/docs/async/promises.md b/docs/async/promises.md index 0fb1fe3..df2de2f 100644 --- a/docs/async/promises.md +++ b/docs/async/promises.md @@ -15,7 +15,7 @@ Let's take a look at the most basic promise usage by using an require __DIR__ . '/../vendor/autoload.php'; -$credentials = 'alice:secret@localhost/bookstore?idle=0.001'; +$credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); @@ -58,7 +58,7 @@ order to "await" its fulfillment value. This is best shown in a simple example: require __DIR__ . '/../vendor/autoload.php'; -$credentials = 'alice:secret@localhost/bookstore?idle=0.001'; +$credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); diff --git a/docs/best-practices/controllers.md b/docs/best-practices/controllers.md index f9be595..3744783 100644 --- a/docs/best-practices/controllers.md +++ b/docs/best-practices/controllers.md @@ -394,7 +394,7 @@ all uppercase in any factory function like this: $container = new FrameworkX\Container([ React\MySQL\ConnectionInterface::class => function (string $DB_HOST = 'localhost', string $DB_USER = 'root', string $DB_PASS = '', string $DB_NAME = 'acme') { // connect to database defined in optional $DB_* environment variables - $uri = 'mysql://' . $DB_USER . ':' . rawurlencode($DB_PASS) . '@' . $DB_HOST . '/' . $DB_NAME . '?idle=0.001'; + $uri = 'mysql://' . $DB_USER . ':' . rawurlencode($DB_PASS) . '@' . $DB_HOST . '/' . $DB_NAME; return (new React\MySQL\Factory())->createLazyConnection($uri); } ]); diff --git a/docs/integrations/database.md b/docs/integrations/database.md index 68452f8..090b59d 100644 --- a/docs/integrations/database.md +++ b/docs/integrations/database.md @@ -16,7 +16,7 @@ Let's take a look at the most basic async database integration possible with X: require __DIR__ . '/../vendor/autoload.php'; - $credentials = 'alice:secret@localhost/bookstore?idle=0.001'; + $credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); @@ -44,7 +44,7 @@ Let's take a look at the most basic async database integration possible with X: require __DIR__ . '/../vendor/autoload.php'; - $credentials = 'alice:secret@localhost/bookstore?idle=0.001'; + $credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); @@ -72,7 +72,7 @@ Let's take a look at the most basic async database integration possible with X: require __DIR__ . '/../vendor/autoload.php'; - $credentials = 'alice:secret@localhost/bookstore?idle=0.001'; + $credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); @@ -214,7 +214,7 @@ from a [route placeholder](../api/app.md#routing) like this: require __DIR__ . '/../vendor/autoload.php'; - $credentials = 'alice:secret@localhost/bookstore?idle=0.001'; + $credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); @@ -252,7 +252,7 @@ from a [route placeholder](../api/app.md#routing) like this: require __DIR__ . '/../vendor/autoload.php'; - $credentials = 'alice:secret@localhost/bookstore?idle=0.001'; + $credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); @@ -290,7 +290,7 @@ from a [route placeholder](../api/app.md#routing) like this: require __DIR__ . '/../vendor/autoload.php'; - $credentials = 'alice:secret@localhost/bookstore?idle=0.001'; + $credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $app = new FrameworkX\App(); @@ -371,7 +371,7 @@ controller and uses dependency injection (DI) or a require __DIR__ . '/../vendor/autoload.php'; - $credentials = 'alice:secret@localhost/bookstore?idle=0.001'; + $credentials = 'alice:secret@localhost/bookstore'; $db = (new React\MySQL\Factory())->createLazyConnection($credentials); $repository = new Acme\Todo\BookRepository($db); @@ -394,7 +394,7 @@ controller and uses dependency injection (DI) or a $container = new FrameworkX\Container([ React\MySQL\ConnectionInterface::class => function () { - $credentials = 'alice:secret@localhost/bookstore?idle=0.001'; + $credentials = 'alice:secret@localhost/bookstore'; return (new React\MySQL\Factory())->createLazyConnection($credentials); } ]);