An error occurred while loading the file. Please try again.
-
Guillaume Perréal authored5e787728
<?php
/*
* © 2016 IRSTEA
* Guillaume Perréal <guillaume.perreal@irstea.fr>
* Tous droits réservés.
*/
namespace Irstea\PlantUmlBundle\Model\Namespace_;
/**
* Description of BundleNamespace
*
* @author Guillaume Perréal <guillaume.perreal@irstea.fr>
*/
class BundleNamespace extends MappedNamespace
{
const SEPARATOR = '::';
public function __construct(array $bundles)
{
$mapping = [];
foreach($bundles as $bundle => $php) {
$mapping[substr($php, 0, 1+strrpos($php, '\\'))] = $bundle.'::';
}
parent::__construct($mapping);
}
}