File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Native matrix library
4
+ *
5
+ * @copyright Copyright 2019, Lisachenko Alexander <lisachenko.it@gmail.com>
6
+ *
7
+ * This source file is subject to the license that is bundled
8
+ * with this source code in the file LICENSE.
9
+ */
10
+ declare (strict_types=1 );
11
+
12
+ use Native \Type \Matrix ;
13
+ use ZEngine \Core ;
14
+ use ZEngine \Reflection \ReflectionClass as ReflectionClassEx ;
15
+
16
+ // We can not be sure that ZEngine library will be initialized first, so check if it present
17
+ if (!class_exists (Core::class, false )) {
18
+ Core::init ();
19
+ }
20
+
21
+ // Activate extensions for the Matrix class as it provides
22
+ $ matrixClassReflection = new ReflectionClassEx (Matrix::class);
23
+ $ matrixClassReflection ->installExtensionHandlers ();
Original file line number Diff line number Diff line change 16
16
"autoload" : {
17
17
"psr-4" : {
18
18
"Native\\ Type\\ " : " src/"
19
- }
19
+ },
20
+ "files" : [" bootstrap.php" ]
20
21
}
21
22
}
You can’t perform that action at this time.
0 commit comments