Add console executables

Bu işleme şunda yer alıyor:
Hypolite Petovan 2018-03-18 05:12:39 -04:00
ebeveyn 9b8fb1d550
işleme dcf2ed26bb
3 değiştirilmiş dosya ile 23 ekleme ve 0 silme

10
bin/console Normal dosya
Dosyayı Görüntüle

@ -0,0 +1,10 @@
#!/bin/sh
dir=$(cd "${0%[/\\]*}" > /dev/null; pwd)
if [[ -d /proc/cygdrive && $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
# We are in Cgywin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
fi
php "${dir}/console.php" "$@"

4
bin/console.bat Normal dosya
Dosyayı Görüntüle

@ -0,0 +1,4 @@
@echo OFF
:: in case DelayedExpansion is on and a path contains !
setlocal DISABLEDELAYEDEXPANSION
php "%~dp0console.php" %*

9
bin/console.php Normal dosya
Dosyayı Görüntüle

@ -0,0 +1,9 @@
#!/bin/env php
<?php
include_once dirname(__DIR__) . '/boot.php';
$a = new Friendica\App(dirname(__DIR__));
\Friendica\BaseObject::setApp($a);
(new Friendica\Core\Console())->execute();