Skip to content

Commit e21ae4a

Browse files
committed
Fixes not able to run examples and test on windows issue by autoloading the example classes and sets the timeout to 0 for running the server without timeout
1 parent d8a2260 commit e21ae4a

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

Diff for: composer.json

+24-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,30 @@
4848
}
4949
},
5050
"autoload-dev": {
51-
"classmap": ["public/examples/common"]
51+
"classmap": [
52+
"public/examples/common",
53+
"public/examples/_001_helloworld",
54+
"public/examples/_002_minimal",
55+
"public/examples/_003_multiformat",
56+
"public/examples/_004_error_response",
57+
"public/examples/_005_protected_api",
58+
"public/examples/_006_routing",
59+
"public/examples/_007_crud",
60+
"public/examples/_008_documentation",
61+
"public/examples/_009_rate_limiting",
62+
"public/examples/_010_access_control",
63+
"public/examples/_011_versioning",
64+
"public/examples/_012_vendor_mime",
65+
"public/examples/_013_html",
66+
"public/examples/_014_oauth2_client",
67+
"public/examples/_015_oauth2_server",
68+
"public/examples/_016_forms",
69+
"public/tests/param",
70+
"public/tests/request_data"
71+
]
72+
},
73+
"config": {
74+
"process-timeout": 0
5275
},
5376
"minimum-stability": "dev",
5477
"conflict": {

Diff for: restler.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
if (is_readable(__DIR__ . '/vendor/autoload.php')) {
66
//if composer auto loader is found use it
7-
$loader = require __DIR__ . '/vendor/autoload.php';
8-
$loader->setUseIncludePath(true);
7+
require __DIR__ . '/vendor/autoload.php';
98
class_alias('Luracast\\Restler\\Restler', 'Restler');
109
} else {
1110
//otherwise use the restler auto loader

0 commit comments

Comments
 (0)