src/Library.php
public function exposePaths(ExposeMethod $method)
    {
        // No-op if exposure not necessary for this configuration
        if (!$this->requiresExpose()) {
            return;
        }
        $folders = $this->getExposedFolders();
        $sourcePath = $this->getPath();
        $targetPath = $this->getPublicPath();
        foreach ($folders as $folder) {
            // Get paths for this folder and delegate to expose method
            $folderSourcePath = Util::joinPaths($sourcePath, $folder);
            $folderTargetPath = Util::joinPaths($targetPath, $folder);
            $method->exposeDirectory($folderSourcePath, $folderTargetPath);
        }
    }
public function exposePaths(ExposeMethod $method)
    {
        // No-op if exposure not necessary for this configuration
        if (!$this->requiresExpose()) {
            return;
        }
        $folders = $this->getExposedFolders();
        $sourcePath = $this->getPath();
        $targetPath = $this->getPublicPath();
        foreach ($folders as $folder) {
            // Get paths for this folder and delegate to expose method
            $folderSourcePath = Util::joinPaths($sourcePath, $folder);
            $folderTargetPath = Util::joinPaths($targetPath, $folder);
            $method->exposeDirectory($folderSourcePath, $folderTargetPath);
        }
    }
public function exposePaths ( ExposeMethod $ method ) { // No-op if exposure not necessary for this configuration if ( ! $ this -> requiresExpose ( ) ) { return ; } $ folders = $ this -> getExposedFolders ( ) ; $ sourcePath = $ this -> getPath ( ) ; $ targetPath = $ this -> getPublicPath ( ) ; foreach ( $ folders as $ folder ) { // Get paths for this folder and delegate to expose method $ folderSourcePath = Util :: joinPaths ( $ sourcePath , $ folder ) ; $ folderTargetPath = Util :: joinPaths ( $ targetPath , $ folder ) ; $ method -> exposeDirectory ( $ folderSourcePath , $ folderTargetPath ) ; } }
Expose all web accessible paths for this module

@param ExposeMethod $method
Expose all web accessible paths for this module