Skip to content

Commit

Permalink
fix: add correct namespace to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-claras committed Mar 17, 2021
1 parent 3e92fb8 commit 5069d42
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
},
"autoload-dev": {
"psr-4": {
"M6WebTest\\Tornado\\": "tests/"
"M6WebTest\\Tornado\\": "tests/",
"M6WebExamples\\Tornado\\": "examples/"
}
},
"require": {
Expand Down
2 changes: 2 additions & 0 deletions examples/00-README-samples.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php

namespace M6WebExamples\Tornado;

require __DIR__.'/../vendor/autoload.php';

use GuzzleHttp\Psr7;
Expand Down
2 changes: 2 additions & 0 deletions examples/01-async-countdown.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php

namespace M6WebExamples\Tornado;

require __DIR__.'/../vendor/autoload.php';

use M6Web\Tornado\Adapter;
Expand Down
2 changes: 2 additions & 0 deletions examples/02-failures.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php

namespace M6WebExamples\Tornado;

require __DIR__.'/../vendor/autoload.php';

use M6Web\Tornado\Adapter;
Expand Down
2 changes: 2 additions & 0 deletions examples/03-http-client.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php

namespace M6WebExamples\Tornado;

require __DIR__.'/../vendor/autoload.php';

use M6Web\Tornado\Adapter;
Expand Down
2 changes: 2 additions & 0 deletions examples/04-foreach.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php

namespace M6WebExamples\Tornado;

require __DIR__.'/../vendor/autoload.php';

use M6Web\Tornado\Adapter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace M6WebExamplesTest\Tornado;
namespace M6WebExamples\Tornado\Tests;

use PHPUnit\Framework\TestCase;

Expand Down

0 comments on commit 5069d42

Please sign in to comment.