Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
minor #206 fix deprecated syntax in installRequirementsFile (xaben)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.0.x-dev branch.

Discussion
----------

fix deprecated syntax in installRequirementsFile

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #205
| License       | MIT
| Doc PR        | n/a

fix for #205

Commits
-------

9021205 fix deprecated syntax in installRequirementsFile
  • Loading branch information
fabpot committed May 16, 2015
2 parents c58c678 + 9021205 commit c46ebf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Composer/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ public static function installRequirementsFile(CommandEvent $event)
$fs->copy(__DIR__.'/../Resources/skeleton/app/check.php', $binDir.'/symfony_requirements', true);
$fs->remove(array($appDir.'/check.php', $appDir.'/SymfonyRequirements.php', true));

$fs->dumpFile($binDir.'/symfony_requirements', '#!/usr/bin/env php'.PHP_EOL.str_replace(".'/SymfonyRequirements.php'", ".'/".$fs->makePathRelative($varDir, $binDir)."SymfonyRequirements.php'", file_get_contents($binDir.'/symfony_requirements')), 0755);
$fs->dumpFile($binDir.'/symfony_requirements', '#!/usr/bin/env php'.PHP_EOL.str_replace(".'/SymfonyRequirements.php'", ".'/".$fs->makePathRelative($varDir, $binDir)."SymfonyRequirements.php'", file_get_contents($binDir.'/symfony_requirements')));
$fs->chmod($binDir.'/symfony_requirements', 0755);
}

$webDir = $options['symfony-web-dir'];
Expand Down

0 comments on commit c46ebf6

Please sign in to comment.