bluzphp /
skeleton
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @copyright Bluz PHP Team |
||
| 5 | * @link https://github.com/bluzphp/skeleton |
||
| 6 | */ |
||
| 7 | |||
| 8 | declare(strict_types=1); |
||
| 9 | |||
| 10 | namespace Application\Pages; |
||
| 11 | |||
| 12 | use Bluz\Grid\Source\SelectSource; |
||
|
0 ignored issues
–
show
|
|||
| 13 | |||
| 14 | /** |
||
| 15 | * Grid of Pages |
||
| 16 | * |
||
| 17 | * @package Application\Pages |
||
| 18 | * |
||
| 19 | * @method Row[] getData() |
||
| 20 | */ |
||
| 21 | class Grid extends \Bluz\Grid\Grid |
||
|
0 ignored issues
–
show
The type
Bluz\Grid\Grid was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $uid = 'pages'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | * |
||
| 31 | * @throws \Bluz\Grid\GridException |
||
| 32 | 1 | */ |
|
| 33 | public function init(): void |
||
| 34 | { |
||
| 35 | 1 | // Setup source |
|
| 36 | 1 | $adapter = new SelectSource(); |
|
| 37 | $adapter->setSource(Table::select()); |
||
| 38 | 1 | ||
| 39 | 1 | $this->setAdapter($adapter); |
|
| 40 | 1 | $this->setDefaultLimit(25); |
|
| 41 | 1 | $this->setAllowOrders(['title', 'id', 'created', 'updated']); |
|
| 42 | 1 | $this->setAllowFilters(['title', 'alias', 'description', 'content', 'id']); |
|
| 43 | } |
||
| 44 | } |
||
| 45 |
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