File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 24
24
"homepage" : " http://epf.org.pl"
25
25
}
26
26
],
27
+ "autoload" : {
28
+ "psr-4" : {
29
+ "epforgpl\\ parsers\\ " : " src/"
30
+ }
31
+ },
27
32
"require" : {
28
33
"gilbitron/php-simplecache" : " ~1.4"
29
34
}
Original file line number Diff line number Diff line change 4
4
* @ver 1.2
5
5
*/
6
6
7
- namespace parldata \parsers ;
7
+ namespace epforgpl \parsers ;
8
8
9
- define ('__ROOT__ ' , dirname (__FILE__ ));
10
- require_once (__ROOT__ . '/vendor/autoload.php ' );
11
- require_once (__ROOT__ . '/vendor/simple_html_dom.php ' );
12
- require_once (__ROOT__ . '/names.polish.php ' );
9
+ require_once (dirname (dirname (__FILE__ )) . '/vendor/simple_html_dom.php ' );
10
+ require_once ('names.polish.php ' );
13
11
14
12
class ParserException extends \Exception {
15
13
}
@@ -26,7 +24,7 @@ public function __construct() {
26
24
if (defined ('CACHE_ENABLED ' ) ? CACHE_ENABLED : false ) {
27
25
$ this ->cache = new \Gilbitron \Util \SimpleCache ();
28
26
29
- $ this ->cache ->cache_path = defined ('CACHE_PATH ' ) ? CACHE_PATH : __ROOT__ . ' / .cache/ ' ;
27
+ $ this ->cache ->cache_path = defined ('CACHE_PATH ' ) ? CACHE_PATH : ' .cache/ ' ;
30
28
$ this ->cache ->cache_time = defined ('CACHE_TTL ' ) ? CACHE_TTL : 3600 ;
31
29
32
30
if (!is_dir ($ this ->cache ->cache_path )) {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments