These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * Copyright 2011 Johannes M. Schmitt <[email protected]> |
||
5 | * |
||
6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
||
7 | * you may not use this file except in compliance with the License. |
||
8 | * You may obtain a copy of the License at |
||
9 | * |
||
10 | * http://www.apache.org/licenses/LICENSE-2.0 |
||
11 | * |
||
12 | * Unless required by applicable law or agreed to in writing, software |
||
13 | * distributed under the License is distributed on an "AS IS" BASIS, |
||
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||
15 | * See the License for the specific language governing permissions and |
||
16 | * limitations under the License. |
||
17 | */ |
||
18 | |||
19 | use Doctrine\Common\Annotations\AnnotationRegistry; |
||
20 | |||
21 | call_user_func(function () { |
||
22 | if (!is_file($autoloadFile = __DIR__ . '/../vendor/autoload.php')) { |
||
23 | throw new \RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?'); |
||
24 | } |
||
25 | |||
26 | require_once $autoloadFile; |
||
27 | |||
28 | AnnotationRegistry::registerLoader('class_exists'); |
||
0 ignored issues
–
show
|
|||
29 | }); |
||
30 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.