Skip to content

Instantly share code, notes, and snippets.

@dollardad
Created January 19, 2016 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dollardad/47581544dfb37c591fa7 to your computer and use it in GitHub Desktop.
Save dollardad/47581544dfb37c591fa7 to your computer and use it in GitHub Desktop.
Uncaught ReflectionException: Class \VersionFeed\Filters\RateLimitFilter does not exist
/**
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