diff --git a/README.md b/README.md index c914374..945e185 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,10 @@ composer require winter/laravel-config-writer ### PHP array files -You can modify Laravel-style PHP configuration files - PHP files that return a single array - by using the `Winter\LaravelConfig\ArrayFile` class. Use the `open` method to open an existing file for modification, or to create a new config file. +You can modify Laravel-style PHP configuration files - PHP files that return a single array - by using the `Winter\LaravelConfigWriter\ArrayFile` class. Use the `open` method to open an existing file for modification, or to create a new config file. ```php -use Winter\LaravelConfig\ArrayFile; +use Winter\LaravelConfigWriter\ArrayFile; $config = ArrayFile::open(base_path('config/app.php')); ``` @@ -110,10 +110,10 @@ $config->sort(ArrayFile::SORT_DESC); ### Environment files -This utility library also allows manipulation of environment files, typically found as `.env` files in a project. The `Winter\LaravelConfig\EnvFile::open()` method allows you to open or create an environment file for modification. +This utility library also allows manipulation of environment files, typically found as `.env` files in a project. The `Winter\LaravelConfigWriter\EnvFile::open()` method allows you to open or create an environment file for modification. ```php -use Winter\LaravelConfig\EnvFile; +use Winter\LaravelConfigWriter\EnvFile; $config = EnvFile::open(base_path('.env')); ``` diff --git a/composer.json b/composer.json index a541a0b..bf149af 100644 --- a/composer.json +++ b/composer.json @@ -25,12 +25,12 @@ }, "autoload": { "psr-4": { - "Winter\\LaravelConfig\\": "src/" + "Winter\\LaravelConfigWriter\\": "src/" } }, "autoload-dev": { "psr-4": { - "Winter\\LaravelConfig\\Tests\\": "tests/" + "Winter\\LaravelConfigWriter\\Tests\\": "tests/" } } } diff --git a/src/ArrayFile.php b/src/ArrayFile.php index 9ee3fce..b846041 100644 --- a/src/ArrayFile.php +++ b/src/ArrayFile.php @@ -1,6 +1,6 @@ expectException(\Winter\LaravelConfig\Exceptions\ConfigWriterException::class); + $this->expectException(\Winter\LaravelConfigWriter\Exceptions\ConfigWriterException::class); $arrayFile->set([ 'w.i.n.t.e.r' => 'Winter CMS', @@ -536,7 +536,7 @@ public function testWriteConstCall() ]); $arrayFile->set([ - 'curl_return' => new \Winter\LaravelConfig\Parser\PHPConstant('CURLOPT_RETURNTRANSFER') + 'curl_return' => new \Winter\LaravelConfigWriter\Parser\PHPConstant('CURLOPT_RETURNTRANSFER') ]); $expected = <<set([ - 'key2' => new \Winter\LaravelConfig\Parser\PHPFunction('nl2br', ['KEY_B', false]) + 'key2' => new \Winter\LaravelConfigWriter\Parser\PHPFunction('nl2br', ['KEY_B', false]) ]); $expected = <<set([ - 'key' => new \Winter\LaravelConfig\Parser\PHPFunction('nl2br', ['KEY_B', false]) + 'key' => new \Winter\LaravelConfigWriter\Parser\PHPFunction('nl2br', ['KEY_B', false]) ]); $expected = <<