Created
January 19, 2016 20:13
-
-
Save dollardad/47581544dfb37c591fa7 to your computer and use it in GitHub Desktop.
Uncaught ReflectionException: Class \VersionFeed\Filters\RateLimitFilter does not exist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
6 * A class for creating new objects by the injector. | |
7 * | |
8 * @package framework | |
9 * @subpackage injector | |
10 */ | |
11 class InjectionCreator implements Factory { | |
12 | |
13 public function create($class, array $params = array()) { | |
14 $reflector = new ReflectionClass($class); | |
15 | |
16 if (count($params)) { | |
17 return $reflector->newInstanceArgs($params); | |
18 } | |
19 | |
20 return $reflector->newInstance(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment