File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " okapi/code-transformer" ,
3
3
"description" : " PHP Code Transformer is a PHP library that allows you to modify and transform the source code of a loaded PHP class." ,
4
- "version" : " 1.1.0 " ,
4
+ "version" : " 1.1.1 " ,
5
5
"type" : " library" ,
6
6
"homepage" : " https://github.com/okapi-web/php-code-transformer" ,
7
7
"license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public static function init(
69
69
70
70
// Register the services
71
71
$ instance ->registerServices ();
72
+ $ instance ->registerAutoloadInterceptor ();
72
73
}
73
74
74
75
$ instance ->setInitialized ();
@@ -92,7 +93,15 @@ protected function registerServices(): void
92
93
93
94
// Stream filter -> Source transformer
94
95
StreamFilter::register ();
96
+ }
95
97
98
+ /**
99
+ * Register the autoload interceptor.
100
+ *
101
+ * @return void
102
+ */
103
+ protected function registerAutoloadInterceptor (): void
104
+ {
96
105
// Overload the composer class loaders
97
106
AutoloadInterceptor::register ();
98
107
}
You can’t perform that action at this time.
0 commit comments