From af4a77cc7442065035e5bfd25da24372bffb4b2b Mon Sep 17 00:00:00 2001 From: mpyw Date: Wed, 2 Oct 2019 04:19:58 +0900 Subject: [PATCH] Disable auto-discovery --- .coveralls.yml | 2 -- README.md | 25 ++++++++++++++++--- composer.json | 11 ++------ ...qlSystemVariableManagerServiceProvider.php | 19 ++++++++++++++ ...qlSystemVariableManagerServiceProvider.php | 6 ++--- src/ManagesSystemVariables.php | 2 +- src/MySqlConnection.php | 2 +- src/PdoDecorator.php | 2 +- src/SystemVariableAwareReconnector.php | 4 +-- tests/BasicVariableAssignmentTest.php | 4 +-- tests/ReconnectionTest.php | 4 +-- tests/TestCase.php | 6 ++--- 12 files changed, 58 insertions(+), 29 deletions(-) delete mode 100644 .coveralls.yml create mode 100644 src/LaravelMySqlSystemVariableManagerServiceProvider.php diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index 30b618e..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1,2 +0,0 @@ -coverage_clover: build/logs/clover.xml -json_path: build/logs/coveralls-upload.json diff --git a/README.md b/README.md index 5041c9c..dda3e19 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,29 @@ A tiny extension of `MySqlConnection` that manages **session** system variables composer require mpyw/laravel-mysql-system-variable-manager ``` -The default implementation is provided by the automatically-discovered service provider. - ## Basic Usage +The default implementation is provided by `LaravelMySqlSystemVariableManagerServiceProvider`, however, **package discovery is not available**. +Be careful that you MUST register it in **`config/app.php`** by yourself. + +```php + [ + /* ... */ + + Mpyw\LaravelMySqlSystemVariableManager\LaravelMySqlSystemVariableManagerServiceProvider::class, + + /* ... */ + ], + +]; +``` + ```php