$commandRunner = new CommandRunner(new Application(ROOT . DS . 'config'), 'cake');
$commandRunner->run([
'bin' . DS . 'cake',
'command_name',
'param1',
'param2,
]);
上記は
$ bin/cake command_name param1 param2
と同等。
$commandRunner = new CommandRunner(new Application(ROOT . DS . 'config'), 'cake');
$commandRunner->run([
'bin' . DS . 'cake',
'command_name',
'param1',
'param2,
]);
上記は
$ bin/cake command_name param1 param2
と同等。
ERROR | [x] The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
) と { は同一行に書きなさい!!
public function sampleFunc(
int $bookId,
string $bookName
): ?BookEntity
{
// ...
}
public function sampleFunc(
int $bookId,
string $bookName
): ?BookEntity {
// ...
}
Windowsにはcronが無いので、タスク スケジューラに設定するんですが、単純に設定するとコマンドプロンプトのウィンドウが一分毎に立ち上がって文字入力の邪魔をする。。
なので、もうVBSファイルからコマンドプロンプトを実行するようにしてこれを回避。
ついでにPHPのバージョン変更もするように。
notBlank
alphaNumeric
notAlphaNumeric
asciiAlphaNumeric
notAsciiAlphaNumeric
lengthBetween
creditCard
numElements
comparison
compareWith
compareFields
containsNonAlphaNumeric
custom
date
datetime
iso8601
time
localizedTime
boolean
truthy
falsey
decimal
equalTo
extension
ip
minLength
maxLength
minLengthBytes
maxLengthBytes
money
multiple
numeric
naturalNumber
range
url
inList
uuid
luhn
mimeType
getFilename
fileSize
uploadError
uploadedFile
imageSize
imageWidth
imageHeight
geoCoordinate
latitude
longitude
ascii
utf8
isInteger
isArray
isScalar
hexColor
iban