BundleNamespace.php 604 bytes
<?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);