src/Php/Composer/Symfony.php
public static function installRequiredFiles()
    {
        $htaccess = [
            __DIR__ . '/../../../../../../app/.htaccess',
            __DIR__ . '/../../../../../../src/.htaccess',
            __DIR__ . '/../../../../../../web/.htaccess',
        ];
        $fileSystem = new Filesystem();

        try {
            if (false === $fileSystem->exists($htaccess)) {
                $fileSystem->copy($htaccess[0] . '.dist', $htaccess[0]);
                $fileSystem->copy($htaccess[1] . '.dist', $htaccess[1]);
                $fileSystem->copy($htaccess[2] . '.dist', $htaccess[2]);
            }
        } catch (\Exception $exception) {
            echo sprintf("Something wrong happens during process: \n%s\n", $exception->getMessage());
        }
    }
public static function installRequiredFiles()
    {
        $htaccess = [
            __DIR__ . '/../../../../../../app/.htaccess',
            __DIR__ . '/../../../../../../src/.htaccess',
            __DIR__ . '/../../../../../../web/.htaccess',
        ];
        $fileSystem = new Filesystem();

        try {
            if (false === $fileSystem->exists($htaccess)) {
                $fileSystem->copy($htaccess[0] . '.dist', $htaccess[0]);
                $fileSystem->copy($htaccess[1] . '.dist', $htaccess[1]);
                $fileSystem->copy($htaccess[2] . '.dist', $htaccess[2]);
            }
        } catch (\Exception $exception) {
            echo sprintf("Something wrong happens during process: \n%s\n", $exception->getMessage());
        }
    }
public static function installRequiredFiles ( ) { $ htaccess = [ __DIR__ . '/../../../../../../app/.htaccess' , __DIR__ . '/../../../../../../src/.htaccess' , __DIR__ . '/../../../../../../web/.htaccess' , ] ; $ fileSystem = new Filesystem ( ) ; try { if ( false === $ fileSystem -> exists ( $ htaccess ) ) { $ fileSystem -> copy ( $ htaccess [ 0 ] . '.dist' , $ htaccess [ 0 ] ) ; $ fileSystem -> copy ( $ htaccess [ 1 ] . '.dist' , $ htaccess [ 1 ] ) ; $ fileSystem -> copy ( $ htaccess [ 2 ] . '.dist' , $ htaccess [ 2 ] ) ; } } catch ( \ Exception $ exception ) { echo sprintf ( "Something wrong happens during process: \n%s\n" , $ exception -> getMessage ( ) ) ; } }
Static method that creates .htaccess, files if they do not exist.
Static method that creates . htaccess files if they do not exist .