src/Zicht/Bundle/UrlBundle/Url/DbStaticProvider.php
public function addAll()
    {
        // Make sure refs are not null any more, else it keeps checking on every static ref
        $this->refs = [];

        /** @var StaticReference $repos */
        $references = $this->em->getRepository('ZichtUrlBundle:StaticReference')->getAll($this->getLocale());

        foreach ($references as $static_reference) {
            foreach ($static_reference->getTranslations() as $translation) {
                $this->refs[$static_reference->getMachineName()][$translation->getLocale()] = $translation->getUrl();
            }
        }
    }
public function addAll()
    {
        // Make sure refs are not null any more, else it keeps checking on every static ref
        $this->refs = [];

        /** @var StaticReference $repos */
        $references = $this->em->getRepository('ZichtUrlBundle:StaticReference')->getAll($this->getLocale());

        foreach ($references as $static_reference) {
            foreach ($static_reference->getTranslations() as $translation) {
                $this->refs[$static_reference->getMachineName()][$translation->getLocale()] = $translation->getUrl();
            }
        }
    }
public function addAll ( ) { // Make sure refs are not null any more, else it keeps checking on every static ref $ this -> refs = [ ] ; /** @var StaticReference $repos */ $ references = $ this -> em -> getRepository ( 'ZichtUrlBundle:StaticReference' ) -> getAll ( $ this -> getLocale ( ) ) ; foreach ( $ references as $ static_reference ) { foreach ( $ static_reference -> getTranslations ( ) as $ translation ) { $ this -> refs [ $ static_reference -> getMachineName ( ) ] [ $ translation -> getLocale ( ) ] = $ translation -> getUrl ( ) ; } } }
Add the array as references

@return void
Add the array as references