From d1ad1697e7d682159435f70ef7a28c233cc945db Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Wed, 10 Jan 2024 09:53:20 +0100 Subject: [PATCH] Better top level namespace (#12) --- README.md | 6 +++--- bin/composer-dependency-analyser | 12 ++++++------ composer.json | 4 ++-- src/ComposerDependencyAnalyser.php | 10 +++++----- src/ComposerJson.php | 2 +- src/Config/Configuration.php | 2 +- src/Config/ErrorType.php | 2 +- src/Config/PathToScan.php | 2 +- src/Printer.php | 6 +++--- src/Result/AnalysisResult.php | 2 +- src/Result/SymbolUsage.php | 2 +- src/UsedSymbolExtractor.php | 2 +- tests/BinTest.php | 2 +- tests/ComposerDependencyAnalyserTest.php | 10 +++++----- tests/ComposerJsonTest.php | 2 +- tests/PrinterTest.php | 6 +++--- tests/UsedSymbolExtractorTest.php | 2 +- 17 files changed, 37 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 63da3fc..3a3df92 100644 --- a/README.md +++ b/README.md @@ -76,14 +76,14 @@ If you want to run it elsewhere, you can use `--composer-json=path/to/composer.j Currently, it only supports those autoload sections: `psr-4`, `psr-0`, `files`. ## Configuration: -You can provide custom path to config file by `--config=path/to/config.php` where the config file is PHP file returning `ShipMonk\Composer\Config\Configuration` object. +You can provide custom path to config file by `--config=path/to/config.php` where the config file is PHP file returning `ShipMonk\ComposerDependencyAnalyser\Config\Configuration` object. Here is example of what you can do: ```php Provide custom path to composer.json --config Provide path to php configuration file - (must return ShipMonk\Composer\Config\Configuration instance) + (must return ShipMonk\ComposerDependencyAnalyser\Config\Configuration instance) EOD; diff --git a/composer.json b/composer.json index e5b1e02..2d432bf 100644 --- a/composer.json +++ b/composer.json @@ -23,12 +23,12 @@ }, "autoload": { "psr-4": { - "ShipMonk\\Composer\\": "src/" + "ShipMonk\\ComposerDependencyAnalyser\\": "src/" } }, "autoload-dev": { "psr-4": { - "ShipMonk\\Composer\\": "tests/" + "ShipMonk\\ComposerDependencyAnalyser\\": "tests/" }, "classmap": [ "tests/vendor/", diff --git a/src/ComposerDependencyAnalyser.php b/src/ComposerDependencyAnalyser.php index 296b03d..681f232 100644 --- a/src/ComposerDependencyAnalyser.php +++ b/src/ComposerDependencyAnalyser.php @@ -1,6 +1,6 @@