Skip to content

Commit c934987

Browse files
author
arp
committed
changed the namespace from Mouf/Mvc/Splash to TheCodingMachine/Splash
1 parent f056e1c commit c934987

File tree

73 files changed

+271
-271
lines changed

Some content is hidden

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

73 files changed

+271
-271
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Clean controllers
3636
Want to get a feeling of Splash? Here is a typical controller:
3737

3838
```php
39-
use Mouf\Mvc\Splash\Annotations\Get;
40-
use Mouf\Mvc\Splash\Annotations\URL;
39+
use TheCodingMachine\Splash\Annotations\Get;
40+
use TheCodingMachine\Splash\Annotations\URL;
4141

4242
class MyController
4343
{
@@ -69,8 +69,8 @@ But Splash can provide much more than this.
6969
Here is a more advanced routing scenario:
7070

7171
```php
72-
use Mouf\Mvc\Splash\Annotations\Post;
73-
use Mouf\Mvc\Splash\Annotations\URL;
72+
use TheCodingMachine\Splash\Annotations\Post;
73+
use TheCodingMachine\Splash\Annotations\URL;
7474
use Psr\Http\Message\UploadedFileInterface;
7575

7676
class MyController

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name" : "mouf/mvc.splash-common",
2+
"name" : "thecodingmachine/splash",
33
"description" : "Splash is a PHP router. It takes an HTTP request and dispatches it to the appropriate controller.",
44
"type" : "mouf-library",
55
"authors" : [{
@@ -49,13 +49,13 @@
4949
},
5050
"autoload" : {
5151
"psr-4" : {
52-
"Mouf\\Annotations\\" : "src/Mouf/Annotations",
53-
"Mouf\\Mvc\\Splash\\" : "src/Mouf/Mvc/Splash"
52+
"TheCodingMachine\\Annotations\\" : "src/TheCodingMachine/Splash/Annotations",
53+
"TheCodingMachine\\Splash\\" : "src/TheCodingMachine/Splash"
5454
}
5555
},
5656
"autoload-dev" : {
5757
"psr-4" : {
58-
"Mouf\\Mvc\\Splash\\" : "tests/Mouf/Mvc/Splash"
58+
"TheCodingMachine\\Splash\\" : "tests/TheCodingMachine/Splash"
5959
}
6060
},
6161
"minimum-stability": "dev",

doc/install/standalone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ use TheCodingMachine\DoctrineCacheBridgeServiceProvider;
6565
use TheCodingMachine\MiddlewareListServiceProvider;
6666
use TheCodingMachine\StashServiceProvider;
6767
use TheCodingMachine\StratigilityServiceProvider;
68-
use Mouf\Mvc\Splash\DI\SplashServiceProvider;
68+
use TheCodingMachine\Splash\DI\SplashServiceProvider;
6969
use TheCodingMachine\WhoopsMiddlewareServiceProvider;
7070

7171
$container = new Container();

doc/migrating.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ In order to upgrade from Splash 7 to Splash 8, you need to perform the following
77
- Run `php composer.phar update`
88
- Remove `extends Controller` in each controller. Starting from Splash 8, controllers do not extend any class.
99
- Update all `@URL` annotations. In Splash 8, annotations are handled by the Doctrine annotations library. Therefore:
10-
- You must add a `use Mouf\Mvc\Splash\Annotations\URL;` in each controller.
10+
- You must add a `use TheCodingMachine\Splash\Annotations\URL;` in each controller.
1111
- You must rewrite annotations to the Doctrine format:
1212
```
1313
@URL my/path => @URL("my/path")
1414
```
1515
- Update all `@Action` annotations.
16-
- You must add a `use Mouf\Mvc\Splash\Annotations\Action;` in each controller.
16+
- You must add a `use TheCodingMachine\Splash\Annotations\Action;` in each controller.
1717
- Assuming you are using Mouf (this is a safe assumption since Splash 7 is highly tied to Mouf), run the Splash installer again.
1818
- Connect to Mouf UI (http://localhost/[yourproject]/vendor/mouf/mouf)
1919
- Click on *Project > Installation tasks*

doc/mouf/writing_controllers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Splash makes that very easy to handle. You can just add a @Get or @Post annotati
7878
namespace Test\Controllers;
7979

8080
use Zend\Diactoros\Response\HtmlResponse;
81-
use Mouf\Mvc\Splash\Annotations\URL;
81+
use TheCodingMachine\Splash\Annotations\URL;
8282

8383
/**
8484
* This is a sample user controller.
@@ -123,7 +123,7 @@ You can put parameters in the URLs and fetch them very easily:
123123

124124
```php
125125
<?php
126-
use Mouf\Mvc\Splash\Annotations\URL;
126+
use TheCodingMachine\Splash\Annotations\URL;
127127

128128
/**
129129
* This is a sample user controller.

doc/writing_controllers_manually.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This is the preferred way of declaring an action:
2626
<?php
2727
namespace Test\Controllers;
2828

29-
use Mouf\Mvc\Splash\Annotations\URL;
29+
use TheCodingMachine\Splash\Annotations\URL;
3030

3131
class MyController {
3232

@@ -88,9 +88,9 @@ Splash makes that very easy to handle. You can just add a @Get or @Post annotati
8888
<?php
8989
namespace Test\Controllers;
9090

91-
use Mouf\Mvc\Splash\Annotations\URL;
92-
use Mouf\Mvc\Splash\Annotations\Get;
93-
use Mouf\Mvc\Splash\Annotations\Post;
91+
use TheCodingMachine\Splash\Annotations\URL;
92+
use TheCodingMachine\Splash\Annotations\Get;
93+
use TheCodingMachine\Splash\Annotations\Post;
9494

9595
/**
9696
* This is a sample user controller.
@@ -168,7 +168,7 @@ Therefore, you can write things like:
168168

169169
```php
170170
<?php
171-
use Mouf\Mvc\Splash\Annotations\URL;
171+
use TheCodingMachine\Splash\Annotations\URL;
172172
use Zend\Diactoros\Response\HtmlResponse;
173173
use Zend\Diactoros\Response\JsonResponse;
174174

@@ -200,8 +200,8 @@ implementing the [`HtmlElementInterface`](http://mouf-php.com/packages/mouf/html
200200

201201
```php
202202
<?php
203-
use Mouf\Mvc\Splash\Annotations\URL;
204-
use Mouf\Mvc\Splash\HtmlResponse;
203+
use TheCodingMachine\Splash\Annotations\URL;
204+
use TheCodingMachine\Splash\HtmlResponse;
205205

206206
class MyController {
207207
/**
@@ -236,7 +236,7 @@ Uploaded files are also directly available from the signature of the method:
236236
**PHP**:
237237
```php
238238
<?php
239-
use Mouf\Mvc\Splash\Annotations\URL;
239+
use TheCodingMachine\Splash\Annotations\URL;
240240
use Psr\Http\Message\UploadedFileInterface;
241241

242242
class MyController {
@@ -269,7 +269,7 @@ Here is a sample:
269269

270270
```php
271271
<?php
272-
use Mouf\Mvc\Splash\Annotations\Action;
272+
use TheCodingMachine\Splash\Annotations\Action;
273273

274274
/**
275275
* This is my test controller.

src/Mouf/Mvc/Splash/Annotations/Action.php renamed to src/TheCodingMachine/Splash/Annotations/Action.php

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

3-
namespace Mouf\Mvc\Splash\Annotations;
3+
namespace TheCodingMachine\Splash\Annotations;
44

55
/**
66
* @Annotation

src/Mouf/Mvc/Splash/Annotations/Delete.php renamed to src/TheCodingMachine/Splash/Annotations/Delete.php

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

3-
namespace Mouf\Mvc\Splash\Annotations;
3+
namespace TheCodingMachine\Splash\Annotations;
44

55
/**
66
* An annotation to restrict an action to only HTTP Delete requests.

src/Mouf/Mvc/Splash/Annotations/Get.php renamed to src/TheCodingMachine/Splash/Annotations/Get.php

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

3-
namespace Mouf\Mvc\Splash\Annotations;
3+
namespace TheCodingMachine\Splash\Annotations;
44

55
/**
66
* An annotation to restrict an action to only HTTP Get requests.

src/Mouf/Mvc/Splash/Annotations/Post.php renamed to src/TheCodingMachine/Splash/Annotations/Post.php

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

3-
namespace Mouf\Mvc\Splash\Annotations;
3+
namespace TheCodingMachine\Splash\Annotations;
44

55
/**
66
* An annotation to restrict an action to only HTTP Post requests.

0 commit comments

Comments
 (0)