View Issue Details

IDProjectCategoryView StatusLast Update
0024035mantisbtcode cleanuppublic2018-02-22 17:55
Reportercproensa Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version2.12.0 
Summary0024035: Define policies for namespaces and class loaders

Recently added classes use namespaces, eg:
namespace Mantis\Exceptions;

Others not, eg: commands

Class loader now has special cases, eg:

    if( substr( $p_class, -9 ) === 'Exception' ) {
        $t_require_path = $g_core_path . 'exceptions/' . $p_class . '.php';

At this point of growing use of classes and namespaces, a more adecuate policy for file naming, namespaces and class loader should be defined

TagsNo tags attached.


There are no notes attached to this issue.