protected function getParentClasses($className)
    {
        $parents = array();

        foreach (array_reverse(class_parents($className)) as $class) {
            if ($this->driver->isService($class)) {
                $parents[] = $class;
            }
        }

        return $parents;
    }