-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Created project from skeleton. - Ran various bake commands.
- Loading branch information
0 parents
commit cfdc552
Showing
81 changed files
with
5,885 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env sh | ||
################################################################################ | ||
# | ||
# Cake is a shell script for invoking CakePHP shell commands | ||
# | ||
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
# | ||
# Licensed under The MIT License | ||
# For full copyright and license information, please see the LICENSE.txt | ||
# Redistributions of files must retain the above copyright notice. | ||
# | ||
# @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
# @link http://cakephp.org CakePHP(tm) Project | ||
# @since 1.2.0 | ||
# @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
# | ||
################################################################################ | ||
|
||
# Canonicalize by following every symlink of the given name recursively | ||
canonicalize() { | ||
NAME="$1" | ||
if [ -f "$NAME" ] | ||
then | ||
DIR=$(dirname -- "$NAME") | ||
NAME=$(cd -P "$DIR" > /dev/null && pwd -P)/$(basename -- "$NAME") | ||
fi | ||
while [ -h "$NAME" ]; do | ||
DIR=$(dirname -- "$NAME") | ||
SYM=$(readlink "$NAME") | ||
NAME=$(cd "$DIR" > /dev/null && cd $(dirname -- "$SYM") > /dev/null && pwd)/$(basename -- "$SYM") | ||
done | ||
echo "$NAME" | ||
} | ||
|
||
CONSOLE=$(dirname -- "$(canonicalize "$0")") | ||
APP=$(dirname "$CONSOLE") | ||
|
||
exec php "$CONSOLE"/cake.php "$@" | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
:: | ||
:: Cake is a Windows batch script for invoking CakePHP shell commands | ||
:: | ||
:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
:: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
:: | ||
:: Licensed under The MIT License | ||
:: Redistributions of files must retain the above copyright notice. | ||
:: | ||
:: @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
:: @link http://cakephp.org CakePHP(tm) Project | ||
:: @since 2.0.0 | ||
:: @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
:: | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
:: In order for this script to work as intended, the cake\console\ folder must be in your PATH | ||
|
||
@echo. | ||
@echo off | ||
|
||
SET app=%0 | ||
SET lib=%~dp0 | ||
|
||
php "%lib%cake.php" %* | ||
|
||
echo. | ||
|
||
exit /B %ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/php -q | ||
<?php | ||
/** | ||
* Command-line code generation utility to automate programmer chores. | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* For full copyright and license information, please see the LICENSE.txt | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @since 2.0.0 | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
*/ | ||
|
||
$minVersion = '5.4.16'; | ||
if (file_exists('composer.json')) { | ||
$composer = json_decode(file_get_contents('composer.json')); | ||
if (isset($composer->require->php)) { | ||
$minVersion = preg_replace('/([^0-9\.])/', '', $composer->require->php); | ||
} | ||
} | ||
if (version_compare(phpversion(), $minVersion, '<')) { | ||
fwrite(STDERR, sprintf("Minimum PHP version: %s. You are using: %s.\n", $minVersion, phpversion())); | ||
exit(-1); | ||
} | ||
|
||
include dirname(__DIR__) . '/config/bootstrap.php'; | ||
|
||
exit(Cake\Console\ShellDispatcher::run($argv)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "cakephp/app", | ||
"description": "CakePHP skeleton app", | ||
"homepage": "http://cakephp.org", | ||
"type": "project", | ||
"license": "MIT", | ||
"require": { | ||
"php": ">=5.4.16", | ||
"cakephp/cakephp": "~3.0", | ||
"mobiledetect/mobiledetectlib": "2.*", | ||
"cakephp/migrations": "~1.0", | ||
"cakephp/plugin-installer": "*" | ||
}, | ||
"require-dev": { | ||
"psy/psysh": "@stable", | ||
"cakephp/debug_kit": "~3.0", | ||
"cakephp/bake": "~1.0" | ||
}, | ||
"suggest": { | ||
"phpunit/phpunit": "Allows automated tests to be run without system-wide install.", | ||
"cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP." | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"App\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"App\\Test\\": "tests", | ||
"Cake\\Test\\": "./vendor/cakephp/cakephp/tests" | ||
} | ||
}, | ||
"scripts": { | ||
"post-install-cmd": "App\\Console\\Installer::postInstall", | ||
"post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
Oops, something went wrong.