silverstripe /
silverstripe-staticpublishqueue
| 1 | <?php |
||
| 2 | |||
| 3 | namespace SilverStripe\StaticPublishQueue\Test\StaticPublisherTest\Controller; |
||
| 4 | |||
| 5 | use PageController; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use SilverStripe\Control\HTTPResponse; |
||
| 7 | use SilverStripe\Dev\TestOnly; |
||
| 8 | |||
| 9 | class StaticPublisherTestPageController extends PageController implements TestOnly |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | * @config |
||
| 14 | */ |
||
| 15 | private static $allowed_actions = ['json']; |
||
|
0 ignored issues
–
show
|
|||
| 16 | |||
| 17 | /** |
||
| 18 | * @return HTTPResponse |
||
| 19 | */ |
||
| 20 | public function json() |
||
| 21 | { |
||
| 22 | $response = new HTTPResponse('{"firstName": "John"}'); |
||
| 23 | $response->addHeader('Content-Type', 'application/json'); |
||
| 24 | return $response; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths