Now that the PSR-4 class autoloading convention has been adopted by core ( see [[2246699]] )

We are now in a temporary transition period where to quote from the change notice

To ensure forward compatibility, it is recommend that modules are converted to the PSR-4 file layout at the earliest opportunity.

This patch below does this ... I will push this to 8.x-1.x-dev unless there are any objections?

The directory structure in simplereservation will be flattened :-


rename {lib/Drupal/simplereservation => src}/Access/ReservationAccessBase.php (100%)
rename {lib/Drupal/simplereservation => src}/Access/ReservationDeleteAccessCheck.php (100%)
rename {lib/Drupal/simplereservation => src}/Access/ReservationEditAccessCheck.php (100%)
rename {lib/Drupal/simplereservation => src}/Controller/SimpleReservationAdminController.php (100%)
rename {lib/Drupal/simplereservation => src}/Controller/SimpleReservationReservationController.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/SimpleReservationAdminNodeTypeForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/SimpleReservationAdminPageForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/SimpleReservationItemDeleteForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/SimpleReservationItemEditForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/SimpleReservationNodeTypeChangeForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/SimpleReservationNodeTypeDeleteForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/SimpleReservationNodeTypeEditForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/SimpleReservationReservationDeleteForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/simpleReservationNodeTypeFormBase.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/simpleReservationReservationAddForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/simpleReservationReservationEditForm.php (100%)
rename {lib/Drupal/simplereservation => src}/Form/simpleReservationReservationFormBase.php (100%)
rename {lib/Drupal/simplereservation => src}/Plugin/Block/UpcomingReservationBlock.php (100%)

CommentFileSizeAuthor
psr-4.patch5.24 KBmartin107

Comments

ZZman’s picture

Thanks for patch that is great.
Evolution will never stop :-)
In this case directory structure will be clearer, I think.

  • Commit edeb1ee on 8.x-1.x-dev by martin107:
    #2248589 PHP class autoloading changed to PSR-4
    
martin107’s picture

Issue summary: View changes
Status: Needs work » Fixed

Push to 8.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

martin107’s picture

Assigned: martin107 » Unassigned