Skip to content

Commit 719a451

Browse files
authored
Merge pull request #135 from ahmedashraf093/feature/change-namespace
Changing the namespace to RonasIT/AutoDoc solving #62
2 parents 3f85697 + d5df708 commit 719a451

File tree

62 files changed

+149
-149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+149
-149
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@
2828
},
2929
"autoload": {
3030
"psr-4": {
31-
"RonasIT\\Support\\AutoDoc\\": "src/"
31+
"RonasIT\\AutoDoc\\": "src/"
3232
},
3333
"exclude-from-classmap": [
3434
"src/Tests/"
3535
]
3636
},
3737
"autoload-dev": {
3838
"psr-4": {
39-
"RonasIT\\Support\\Tests\\": "tests/",
40-
"RonasIT\\Support\\Tests\\Support\\": "tests/support/"
39+
"RonasIT\\AutoDoc\\Tests\\": "tests/",
40+
"RonasIT\\AutoDoc\\Tests\\Support\\": "tests/support/"
4141
}
4242
},
4343
"extra": {
4444
"laravel": {
4545
"providers": [
46-
"RonasIT\\Support\\AutoDoc\\AutoDocServiceProvider"
46+
"RonasIT\\AutoDoc\\AutoDocServiceProvider"
4747
]
4848
}
4949
}

config/auto-doc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use RonasIT\Support\AutoDoc\Drivers\LocalDriver;
4-
use RonasIT\Support\AutoDoc\Drivers\RemoteDriver;
5-
use RonasIT\Support\AutoDoc\Drivers\StorageDriver;
3+
use RonasIT\AutoDoc\Drivers\LocalDriver;
4+
use RonasIT\AutoDoc\Drivers\RemoteDriver;
5+
use RonasIT\AutoDoc\Drivers\StorageDriver;
66

77
return [
88

@@ -110,7 +110,7 @@
110110
|
111111
| The name of driver, which will collect and save documentation
112112
| Feel free to use your own driver class which should be inherited from
113-
| `RonasIT\Support\AutoDoc\Interfaces\SwaggerDriverInterface` interface,
113+
| `RonasIT\AutoDoc\Interfaces\SwaggerDriverInterface` interface,
114114
| or one of our drivers from the `drivers` config:
115115
*/
116116
'driver' => env('SWAGGER_DRIVER', 'local'),

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ passing PHPUnit tests.
3939
> ```php
4040
> 'providers' => [
4141
> // ...
42-
> RonasIT\Support\AutoDoc\AutoDocServiceProvider::class,
42+
> RonasIT\AutoDoc\AutoDocServiceProvider::class,
4343
> ],
4444
> ```
4545
4646
1. Run `php artisan vendor:publish`
47-
2. Add `\RonasIT\Support\AutoDoc\Http\Middleware\AutoDocMiddleware::class` middleware to the global HTTP middleware stack in `Http/Kernel.php`.
48-
3. Add `\RonasIT\Support\AutoDoc\Tests\AutoDocTestCaseTrait` trait to `tests/TestCase.php`
47+
2. Add `\RonasIT\AutoDoc\Http\Middleware\AutoDocMiddleware::class` middleware to the global HTTP middleware stack in `Http/Kernel.php`.
48+
3. Add `\RonasIT\AutoDoc\Tests\AutoDocTestCaseTrait` trait to `tests/TestCase.php`
4949
4. Configure documentation saving using one of the next ways:
5050
- Add `SwaggerExtension` to the `<extensions>` block of your `phpunit.xml`.
5151
**Please note that this way will be removed after updating**
5252
**PHPUnit up to 10 version (https://github.com/sebastianbergmann/phpunit/issues/4676)**
5353
```xml
5454
<extensions>
55-
<extension class="RonasIT\Support\AutoDoc\Tests\PhpUnitExtensions\SwaggerExtension"/>
55+
<extension class="RonasIT\AutoDoc\Tests\PhpUnitExtensions\SwaggerExtension"/>
5656
</extensions>
5757
<testsuites>
5858
<testsuite name="Feature">

src/AutoDocServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace RonasIT\Support\AutoDoc;
3+
namespace RonasIT\AutoDoc;
44

55
use Illuminate\Support\ServiceProvider;
6-
use RonasIT\Support\AutoDoc\Commands\PushDocumentationCommand;
6+
use RonasIT\AutoDoc\Commands\PushDocumentationCommand;
77

88
class AutoDocServiceProvider extends ServiceProvider
99
{

src/Commands/PushDocumentationCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace RonasIT\Support\AutoDoc\Commands;
3+
namespace RonasIT\AutoDoc\Commands;
44

55
use Illuminate\Console\Command;
6-
use RonasIT\Support\AutoDoc\Services\SwaggerService;
6+
use RonasIT\AutoDoc\Services\SwaggerService;
77

88
class PushDocumentationCommand extends Command
99
{

src/Drivers/BaseDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace RonasIT\Support\AutoDoc\Drivers;
3+
namespace RonasIT\AutoDoc\Drivers;
44

5-
use RonasIT\Support\AutoDoc\Interfaces\SwaggerDriverInterface;
5+
use RonasIT\AutoDoc\Interfaces\SwaggerDriverInterface;
66

77
abstract class BaseDriver implements SwaggerDriverInterface
88
{

src/Drivers/LocalDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace RonasIT\Support\AutoDoc\Drivers;
3+
namespace RonasIT\AutoDoc\Drivers;
44

55
use Illuminate\Contracts\Filesystem\FileNotFoundException;
6-
use RonasIT\Support\AutoDoc\Exceptions\MissedProductionFilePathException;
6+
use RonasIT\AutoDoc\Exceptions\MissedProductionFilePathException;
77

88
class LocalDriver extends BaseDriver
99
{

src/Drivers/RemoteDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace RonasIT\Support\AutoDoc\Drivers;
3+
namespace RonasIT\AutoDoc\Drivers;
44

55
use Illuminate\Contracts\Filesystem\FileNotFoundException;
6-
use RonasIT\Support\AutoDoc\Exceptions\MissedRemoteDocumentationUrlException;
6+
use RonasIT\AutoDoc\Exceptions\MissedRemoteDocumentationUrlException;
77

88
class RemoteDriver extends BaseDriver
99
{

src/Drivers/StorageDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace RonasIT\Support\AutoDoc\Drivers;
3+
namespace RonasIT\AutoDoc\Drivers;
44

55
use Illuminate\Contracts\Filesystem\FileNotFoundException;
66
use Illuminate\Contracts\Filesystem\Filesystem;
77
use Illuminate\Support\Facades\Storage;
8-
use RonasIT\Support\AutoDoc\Exceptions\MissedProductionFilePathException;
8+
use RonasIT\AutoDoc\Exceptions\MissedProductionFilePathException;
99

1010
class StorageDriver extends BaseDriver
1111
{

src/Exceptions/DocFileNotExistsException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace RonasIT\Support\AutoDoc\Exceptions;
3+
namespace RonasIT\AutoDoc\Exceptions;
44

55
use Exception;
66

0 commit comments

Comments
 (0)