protected function initResourceDir()
    {
        $this->resourceDir = [];

        $this->addResourceDir($this->getBBDir().'/Resources');

        if (is_dir($this->getBaseRepository().'/Resources')) {
            $this->addResourceDir($this->getBaseRepository().'/Resources');
        }

        if (is_dir($this->getBaseRepository().'/Ressources')) {
            $this->addResourceDir($this->getBaseRepository().'/Ressources');
        }

        if ($this->hasContext()) {
            if (is_dir($this->getRepository().'/Resources')) {
                $this->addResourceDir($this->getRepository().'/Resources');
            }

            if (is_dir($this->getRepository().'/Resources')) {
                $this->addResourceDir($this->getRepository().'/Resources');
            }
        }

        array_map(['BackBee\Utils\File\File', 'resolveFilepath'], $this->resourceDir);
    }
protected function initResourceDir()
    {
        $this->resourceDir = [];

        $this->addResourceDir($this->getBBDir().'/Resources');

        if (is_dir($this->getBaseRepository().'/Resources')) {
            $this->addResourceDir($this->getBaseRepository().'/Resources');
        }

        if (is_dir($this->getBaseRepository().'/Ressources')) {
            $this->addResourceDir($this->getBaseRepository().'/Ressources');
        }

        if ($this->hasContext()) {
            if (is_dir($this->getRepository().'/Resources')) {
                $this->addResourceDir($this->getRepository().'/Resources');
            }

            if (is_dir($this->getRepository().'/Resources')) {
                $this->addResourceDir($this->getRepository().'/Resources');
            }
        }

        array_map(['BackBee\Utils\File\File', 'resolveFilepath'], $this->resourceDir);
    }
protected function initResourceDir ( ) { $ this -> resourceDir = [ ] ; $ this -> addResourceDir ( $ this -> getBBDir ( ) . '/Resources' ) ; if ( is_dir ( $ this -> getBaseRepository ( ) . '/Resources' ) ) { $ this -> addResourceDir ( $ this -> getBaseRepository ( ) . '/Resources' ) ; } if ( is_dir ( $ this -> getBaseRepository ( ) . '/Ressources' ) ) { $ this -> addResourceDir ( $ this -> getBaseRepository ( ) . '/Ressources' ) ; } if ( $ this -> hasContext ( ) ) { if ( is_dir ( $ this -> getRepository ( ) . '/Resources' ) ) { $ this -> addResourceDir ( $ this -> getRepository ( ) . '/Resources' ) ; } if ( is_dir ( $ this -> getRepository ( ) . '/Resources' ) ) { $ this -> addResourceDir ( $ this -> getRepository ( ) . '/Resources' ) ; } } array_map ( [ 'BackBee\Utils\File\File' , 'resolveFilepath' ] , $ this -> resourceDir ) ; }
Init the default resource directories
Init the default resource directories