Unplanned
Last Updated: 09 Aug 2023 10:55 by Krasimir
Krasimir
Created on: 08 Aug 2023 08:29
Category: UI for PHP
Type: Feature Request
1
PHP classes not complying with psr-4 autoloading standard
Some classes are not complying with the psr-4 autoloading standard, so either the file name or the PHP class names must be changed.
1 comment
Krasimir
Posted on: 09 Aug 2023 10:55

Files:

  • wrappers/php/lib/Kendo/Dataviz/UI/DiagramConnectionDefaultsEndCap.stroke.php
  • wrappers/php/lib/Kendo/UI/PDFViewerDplProcessing.read.php
  • wrappers/php/lib/Kendo/UI/PDFViewerDplProcessing.download.php
  • wrappers/php/lib/Kendo/UI/PDFViewerDplProcessing.upload.php

Problem:

Class name can't contain . "dot" in PHP

Suggestion:

  1. Rename the classes like: DiagramConnectionDefaultsEndCapStroke, PDFViewerDplProcessingRead
  2. Rename the files like: DiagramConnectionDefaultsEndCapStroke.php, PDFViewerDplProcessingRead.php

Files:

  • wrappers/php/lib/Kendo/UI/PdfViewer.php
  • wrappers/php/lib/Kendo/UI/PdfViewerView.php
  • wrappers/php/lib/Kendo/UI/PdfViewerToolbar.php
  • wrappers/php/lib/Kendo/UI/PdfViewerToolbarItem.php
  • wrappers/php/lib/Kendo/UI/CheckboxGroup.php
  • wrappers/php/lib/Kendo/UI/CheckboxGroupItem.php

Problem:

Classname and filename doesn't comply with psr-4 autoloading standart.

Suggestions:

  1. Either rename the files like PDFViewer.php, PDFViewerView.php (seems more likely and a batter approach with less impact, also having in mind the other classes like PDFViewerMessages)
  2. Or rename the class names to PdfViewer, PdfViewerView

Warnings thrown after trying to autoload Kendo via composer:

Class Kendo\Dataviz\UI\DiagramConnectionDefaultsEndCap located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/Dataviz/UI/DiagramConnectionDefaultsEndCap.stroke.php does not comply with psr-4 autoloading standard. Skipping.
Class Kendo\UI\PDFViewer located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/UI/PdfViewer.php does not comply with psr-4 autoloading standard. Skipping.
Class Kendo\UI\PDFViewerToolbar located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/UI/PdfViewerToolbar.php does not comply with psr-4 autoloading standard. Skipping.
Class Kendo\UI\PDFViewerDplProcessing located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/UI/PDFViewerDplProcessing.read.php does not comply with psr-4 autoloading standard. Skipping.
Class Kendo\UI\PDFViewerDplProcessing located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/UI/PDFViewerDplProcessing.download.php does not comply with psr-4 autoloading standard. Skipping.
Class Kendo\UI\PDFViewerDplProcessing located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/UI/PDFViewerDplProcessing.upload.php does not comply with psr-4 autoloading standard. Skipping.
Class Kendo\UI\CheckBoxGroupItem located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/UI/CheckboxGroupItem.php does not comply with psr-4 autoloading standard. Skipping.
Class Kendo\UI\PDFViewerToolbarItem located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/UI/PdfViewerToolbarItem.php does not comply with psr-4 autoloading standard. Skipping.
Class Kendo\UI\CheckBoxGroup located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/UI/CheckboxGroup.php does not comply with psr-4 autoloading standard. Skipping.
Class Kendo\UI\PDFViewerView located in ./vendor/itfixit/laravel-kendo-ui/wrappers/php/lib/Kendo/UI/PdfViewerView.php does not comply with psr-4 autoloading standard. Skipping.