public function add($location, FrontInclude $include) { $dependency = $include->getDependency(); $registered = $this->getRegisteredIncludes(); foreach ($dependency as $handle) { if (!in_array($handle, $this->queued[$location]) && isset($registered[$handle])) { $this->queue[$location][] = $registered[$handle]; $this->queued[$location][] = $handle; } } $this->queued[$location][] = $include->getHandle(); $this->queue[$location][] = $include; }