public static function addFileExtensions(array $extensions)
    {
        // get list of currently configured autoload-file-extensions
        $splExtensions = explode(',', spl_autoload_extensions());

        // merge existing extension and new extension and remove duplicates
        $splExtensions = array_unique(array_merge($splExtensions, $extensions));

        // set file extensions for spl
        spl_autoload_extensions(implode(',', $splExtensions));
    }
public static function addFileExtensions(array $extensions)
    {
        // get list of currently configured autoload-file-extensions
        $splExtensions = explode(',', spl_autoload_extensions());

        // merge existing extension and new extension and remove duplicates
        $splExtensions = array_unique(array_merge($splExtensions, $extensions));

        // set file extensions for spl
        spl_autoload_extensions(implode(',', $splExtensions));
    }
public static function addFileExtensions ( array $ extensions ) { // get list of currently configured autoload-file-extensions $ splExtensions = explode ( ',' , spl_autoload_extensions ( ) ) ; // merge existing extension and new extension and remove duplicates $ splExtensions = array_unique ( array_merge ( $ splExtensions , $ extensions ) ) ; // set file extensions for spl spl_autoload_extensions ( implode ( ',' , $ splExtensions ) ) ; }
Adds a list of file-extensions to SPL-list of autoload_extensions

This method is intend to add a list of file-extensions to SPL-list of autoload_extensions.

@param array $extensions The extensions to add

@author Benjamin Carl <opensource@clickalicious.de>
@return void
@access public
@static
Adds a list of file - extensions to SPL - list of autoload_extensions