Namespacing external.php inside a plugin

Namespacing external.php inside a plugin

by Dulitha Rajapaksha -
Number of replies: 0

If I add a namespace in external.php file, would it be possible to call that external file from services.php file without giving the whole classname path.

'local_my_plugin_function' => array(
'classname' => 'local_my_plugin_external',
'methodname' => 'function_name',
'classpath' => 'local/my_plugin/classes/external.php',
'description' => 'True/False',
'type' => 'read',
),
Would it be possible to change this classpath according to the namespace given to the external file

Average of ratings: -