src/BundleClassFinder.php
public function setBundles(array $bundles)
    {
        $this->bundles = new \SplObjectStorage;
        foreach ($bundles as $bundle) {
            if ($bundle instanceof BundleInterface) {
                $this->addBundle($bundle);
            }
        }
        return $this;
    }
public function setBundles(array $bundles)
    {
        $this->bundles = new \SplObjectStorage;
        foreach ($bundles as $bundle) {
            if ($bundle instanceof BundleInterface) {
                $this->addBundle($bundle);
            }
        }
        return $this;
    }
Set Bundles

@access public
@param array $bundles
@return self