Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 578d2ab8d5
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (29 sloc) 1.112 kB
@echo off
rem *************************************************************
rem ** symfony CLI for Windows based systems (based on phing.bat)
rem *************************************************************
rem This script will do the following:
rem - check for PHP_COMMAND env, if found, use it.
rem - if not found detect php, if found use it, otherwise err and terminate
if "%OS%"=="Windows_NT" @setlocal
rem %~dp0 is expanded pathname of the current script under NT
set SCRIPT_DIR=%~dp0
goto init
:init
if "%PHP_COMMAND%" == "" goto no_phpcommand
if "%SCRIPT_DIR%" == "" (
%PHP_COMMAND% "symfony" %*
) else (
%PHP_COMMAND% "%SCRIPT_DIR%\symfony" %*
)
goto cleanup
:no_phpcommand
rem echo ------------------------------------------------------------------------
rem echo WARNING: Set environment var PHP_COMMAND to the location of your php.exe
rem echo executable (e.g. C:\PHP\php.exe). (assuming php.exe on PATH)
rem echo ------------------------------------------------------------------------
set PHP_COMMAND=php.exe
goto init
:cleanup
if "%OS%"=="Windows_NT" @endlocal
rem pause
Jump to Line
Something went wrong with that request. Please try again.