Commit 5d9f0bb3 authored by Damyon Wiese's avatar Damyon Wiese Committed by Dan Poltawski
Browse files

MDL-55071 psr4: Use psr4 classloader for scss, rtlcss and cssparser

Part of MDL-55071
parent ff392efc
......@@ -75,6 +75,9 @@ class core_component {
protected static $psr4namespaces = array(
'MaxMind' => 'lib/maxmind/MaxMind',
'GeoIp2' => 'lib/maxmind/GeoIp2',
'Sabberworm\\CSS' => 'lib/php-css-parser',
'MoodleHQ\\RTLCSS' => 'lib/rtlcss',
'Leafo\\ScssPhp' => 'lib/scssphp'
);
/**
......
......@@ -24,40 +24,6 @@
defined('MOODLE_INTERNAL') || die();
// TODO MDL-53016 Remove this when the latter is implemented.
require_once($CFG->libdir . '/php-css-parser/Comment/Commentable.php');
require_once($CFG->libdir . '/php-css-parser/Renderable.php');
require_once($CFG->libdir . '/php-css-parser/Property/AtRule.php');
require_once($CFG->libdir . '/php-css-parser/RuleSet/RuleSet.php');
require_once($CFG->libdir . '/php-css-parser/RuleSet/AtRuleSet.php');
require_once($CFG->libdir . '/php-css-parser/Parsing/SourceException.php');
require_once($CFG->libdir . '/php-css-parser/CSSList/CSSList.php');
require_once($CFG->libdir . '/php-css-parser/CSSList/CSSBlockList.php');
require_once($CFG->libdir . '/php-css-parser/Value/Value.php');
require_once($CFG->libdir . '/php-css-parser/Value/ValueList.php');
require_once($CFG->libdir . '/php-css-parser/Value/CSSFunction.php');
require_once($CFG->libdir . '/php-css-parser/Comment/Comment.php');
require_once($CFG->libdir . '/php-css-parser/Value/PrimitiveValue.php');
require_once($CFG->libdir . '/php-css-parser/CSSList/AtRuleBlockList.php');
require_once($CFG->libdir . '/php-css-parser/CSSList/Document.php');
require_once($CFG->libdir . '/php-css-parser/CSSList/KeyFrame.php');
require_once($CFG->libdir . '/php-css-parser/OutputFormat.php');
require_once($CFG->libdir . '/php-css-parser/Parser.php');
require_once($CFG->libdir . '/php-css-parser/Parsing/OutputException.php');
require_once($CFG->libdir . '/php-css-parser/Parsing/UnexpectedTokenException.php');
require_once($CFG->libdir . '/php-css-parser/Property/Charset.php');
require_once($CFG->libdir . '/php-css-parser/Property/CSSNamespace.php');
require_once($CFG->libdir . '/php-css-parser/Property/Import.php');
require_once($CFG->libdir . '/php-css-parser/Property/Selector.php');
require_once($CFG->libdir . '/php-css-parser/Rule/Rule.php');
require_once($CFG->libdir . '/php-css-parser/RuleSet/DeclarationBlock.php');
require_once($CFG->libdir . '/php-css-parser/Settings.php');
require_once($CFG->libdir . '/php-css-parser/Value/Color.php');
require_once($CFG->libdir . '/php-css-parser/Value/CSSString.php');
require_once($CFG->libdir . '/php-css-parser/Value/RuleValueList.php');
require_once($CFG->libdir . '/php-css-parser/Value/Size.php');
require_once($CFG->libdir . '/php-css-parser/Value/URL.php');
/**
* Moodle CSS parser.
*
......
......@@ -24,9 +24,6 @@
defined('MOODLE_INTERNAL') || die();
// TODO MDL-53016 Remove this when the latter is implemented.
require_once($CFG->libdir . '/rtlcss/RTLCSS.php');
/**
* Moodle RTLCSS class.
*
......
......@@ -24,31 +24,6 @@
defined('MOODLE_INTERNAL') || die();
// TODO MDL-53016 Remove this when the latter is implemented.
require_once($CFG->libdir . '/scssphp/Base/Range.php');
require_once($CFG->libdir . '/scssphp/Block.php');
require_once($CFG->libdir . '/scssphp/Colors.php');
require_once($CFG->libdir . '/scssphp/Compiler.php');
require_once($CFG->libdir . '/scssphp/Compiler/Environment.php');
require_once($CFG->libdir . '/scssphp/Exception/CompilerException.php');
require_once($CFG->libdir . '/scssphp/Exception/ParserException.php');
require_once($CFG->libdir . '/scssphp/Exception/ServerException.php');
require_once($CFG->libdir . '/scssphp/Formatter.php');
require_once($CFG->libdir . '/scssphp/Formatter/Compact.php');
require_once($CFG->libdir . '/scssphp/Formatter/Compressed.php');
require_once($CFG->libdir . '/scssphp/Formatter/Crunched.php');
require_once($CFG->libdir . '/scssphp/Formatter/Debug.php');
require_once($CFG->libdir . '/scssphp/Formatter/Expanded.php');
require_once($CFG->libdir . '/scssphp/Formatter/Nested.php');
require_once($CFG->libdir . '/scssphp/Formatter/OutputBlock.php');
require_once($CFG->libdir . '/scssphp/Node.php');
require_once($CFG->libdir . '/scssphp/Node/Number.php');
require_once($CFG->libdir . '/scssphp/Parser.php');
require_once($CFG->libdir . '/scssphp/Type.php');
require_once($CFG->libdir . '/scssphp/Util.php');
require_once($CFG->libdir . '/scssphp/Version.php');
require_once($CFG->libdir . '/scssphp/Server.php');
/**
* Moodle SCSS compiler class.
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment