1
0
Fork 0
composer/tests/Composer/Test/Autoload/Fixtures
Ayesh Karunaratne 228428747a
Add support for autoloading Enums
PHP 8.1 supports Enums, and [Enums follow class-semantics](https://php.watch/versions/8.1/enums#class-semantics-autoload).

Composer's class-map generator currently looks for `class`, `interface`, and `trait` keywords. If Composer is run in PHP 8.1 or later, Composer now additionally looks for `enum` keyword as well. This is similar to how Hack's `enum` support is added.

This PR also adds tests for basic enums, backed enums, namespaced enums, and an enum that implements an interface and extends a class.
2021-02-06 15:51:18 +07:00
..
Namespaced
Pearlike
SubNamespace
beta
classmap Minor code improvements 2020-09-20 02:16:28 +02:00
hhvm3.3
php5.4
php7.0
php8.1 Add support for autoloading Enums 2021-02-06 15:51:18 +07:00
platform AutoloadGenerator: Send error HTTP status on error 2020-11-05 09:57:48 +01:00
template
autoload_classmap.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_classmap2.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_classmap3.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_classmap4.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_classmap5.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_classmap6.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_classmap7.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_classmap8.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_classmap9.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_files.php
autoload_files2.php Rename mainPackage to rootPackage in AutoloadGenerator and ensure we use RootPackageInterface 2020-11-12 10:41:06 +01:00
autoload_files_files_by_dependency.php
autoload_files_functions.php Rename mainPackage to rootPackage in AutoloadGenerator and ensure we use RootPackageInterface 2020-11-12 10:41:06 +01:00
autoload_files_functions_with_removed_extra.php Rename mainPackage to rootPackage in AutoloadGenerator and ensure we use RootPackageInterface 2020-11-12 10:41:06 +01:00
autoload_files_target_dir.php Rename mainPackage to rootPackage in AutoloadGenerator and ensure we use RootPackageInterface 2020-11-12 10:41:06 +01:00
autoload_functions.php Remove useless concat. 2016-09-16 14:50:34 +02:00
autoload_functions_by_dependency.php Remove useless concat. 2016-09-16 14:50:34 +02:00
autoload_main.php
autoload_main2.php
autoload_main3.php
autoload_main4.php
autoload_main5.php
autoload_phar.php Handle absolute phar:// paths in autoload_static.php 2019-04-11 20:23:31 +02:00
autoload_phar_psr4.php Handle absolute phar:// paths in autoload_static.php 2019-04-11 20:23:31 +02:00
autoload_phar_static.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_psr4.php
autoload_psr4_2.php
autoload_psr4_3.php
autoload_real_files_by_dependency.php Ensure InstalledVersions reports info about all currently registered class loaders 2021-01-27 10:39:35 +01:00
autoload_real_functions.php Ensure InstalledVersions reports info about all currently registered class loaders 2021-01-27 10:39:35 +01:00
autoload_real_functions_with_include_paths.php Ensure InstalledVersions reports info about all currently registered class loaders 2021-01-27 10:39:35 +01:00
autoload_real_functions_with_removed_include_paths_and_autolad_files.php Ensure InstalledVersions reports info about all currently registered class loaders 2021-01-27 10:39:35 +01:00
autoload_real_include_path.php Ensure InstalledVersions reports info about all currently registered class loaders 2021-01-27 10:39:35 +01:00
autoload_real_target_dir.php Ensure InstalledVersions reports info about all currently registered class loaders 2021-01-27 10:39:35 +01:00
autoload_static_files_by_dependency.php Rename mainPackage to rootPackage in AutoloadGenerator and ensure we use RootPackageInterface 2020-11-12 10:41:06 +01:00
autoload_static_functions.php Rename mainPackage to rootPackage in AutoloadGenerator and ensure we use RootPackageInterface 2020-11-12 10:41:06 +01:00
autoload_static_functions_with_include_paths.php Rename mainPackage to rootPackage in AutoloadGenerator and ensure we use RootPackageInterface 2020-11-12 10:41:06 +01:00
autoload_static_functions_with_removed_include_paths_and_autolad_files.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_static_include_path.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
autoload_static_target_dir.php Rename mainPackage to rootPackage in AutoloadGenerator and ensure we use RootPackageInterface 2020-11-12 10:41:06 +01:00
autoload_target_dir.php Remove useless concat. 2016-09-16 14:50:34 +02:00
autoload_vendors.php
include_paths.php
include_paths_functions.php
include_paths_functions_with_removed_extra.php