src/Controller/PlatformSchemeController.php
public function getAllowedUploadableExtension()
    {
        $config = $this->getServiceLocator()->get('MelisCoreConfig');
        $path   = $config->getItem('meliscore/interface/meliscore_leftmenu/interface/meliscore_toolstree_section/interface/meliscore_tool_system_config/interface/meliscore_tool_platform_scheme');
        $ext    = null;


        if($path) {
            $ext = isset($path['datas']['allowed_file_extension']) ? $path['datas']['allowed_file_extension'] : 'jpeg,jpg,png,svg,ico,gif';
        }

        return $ext;
    }
public function getAllowedUploadableExtension()
    {
        $config = $this->getServiceLocator()->get('MelisCoreConfig');
        $path   = $config->getItem('meliscore/interface/meliscore_leftmenu/interface/meliscore_toolstree_section/interface/meliscore_tool_system_config/interface/meliscore_tool_platform_scheme');
        $ext    = null;


        if($path) {
            $ext = isset($path['datas']['allowed_file_extension']) ? $path['datas']['allowed_file_extension'] : 'jpeg,jpg,png,svg,ico,gif';
        }

        return $ext;
    }
public function getAllowedUploadableExtension ( ) { $ config = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreConfig' ) ; $ path = $ config -> getItem ( 'meliscore/interface/meliscore_leftmenu/interface/meliscore_toolstree_section/interface/meliscore_tool_system_config/interface/meliscore_tool_platform_scheme' ) ; $ ext = null ; if ( $ path ) { $ ext = isset ( $ path [ 'datas' ] [ 'allowed_file_extension' ] ) ? $ path [ 'datas' ] [ 'allowed_file_extension' ] : 'jpeg,jpg,png,svg,ico,gif' ; } return $ ext ; }
Returns the allowed extensions that can be uploaded
@return null|string
Returns the allowed extensions that can be uploaded