View Issue Details

IDProjectCategoryView StatusLast Update
0024035mantisbtcode cleanuppublic2018-02-22 17:55
ReportercproensaAssigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version2.12.0 
Target VersionFixed in Version 
Summary0024035: Define policies for namespaces and class loaders
Description

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.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2018-02-22 17:55 cproensa New Issue