You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -43,37 +28,23 @@ public function compileInput($input, $format = null)
43
28
$input = $parser->parse($input);
44
29
}
45
30
46
-
if( ! isset($input['package']))
47
-
{
48
-
thrownewException("Syntax error: 'package' key not present in input. Given input is: ".json_encode($input, JSON_PRETTY_PRINT));
49
-
}
50
-
51
-
if( ! isset($input['resources']))
52
-
{
53
-
thrownewException("Syntax error: 'resources' key not present in input. Given input is: ".json_encode($input, JSON_PRETTY_PRINT));
54
-
}
31
+
$packages = Objectifier::objectify($input);
55
32
56
-
$package = $input['package'];
57
-
$resources = $input['resources'];
58
-
59
-
$files = array();
60
-
foreach($resourcesas$name => $resource)
33
+
$results = array();
34
+
foreach($packagesas$package)
61
35
{
62
-
if( ! isset($resource['compilers']))
36
+
foreach($package->getResources() as$resource)
63
37
{
64
-
thrownewException("Syntax error: 'compilers' key not present in resource configuration. Given resource configuration is: ".json_encode($resource, JSON_PRETTY_PRINT));
0 commit comments