<?php
$s = $container->get('serializer');
$r = $s->normalize($entity);
$json = $s->serialize($entity, 'json');
json へのシリアライズも簡単
" JSDoc形式のコメントを追加(functionの行で実行する) | |
" hogeFunc: function() の形式と function hogeFunc() に対応 | |
" 関数定義でない場合は、コメントだけ出力する | |
function! AddJSDoc() | |
let l:jsDocregex = '\s*\([a-zA-Z]*\)\s*[:=]\s*function\s*(\s*\(.*\)\s*).*' | |
let l:jsDocregex2 = '\s*function \([a-zA-Z]*\)\s*(\s*\(.*\)\s*).*' | |
let l:line = getline('.') | |
let l:indent = indent('.') | |
let l:space = repeat(" ", l:indent) |
<?php | |
/** @noinspection PhpUnused */ | |
namespace App\DQL; | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
use Doctrine\ORM\Query\Lexer; | |
use Doctrine\ORM\Query\Parser; | |
use Doctrine\ORM\Query\QueryException; |
https://symfony.com/doc/current/validation.html
# Postgresqlに接続できなくなった時 | |
```bash | |
rm /usr/local/var/postgres/postmaster.pid | |
``` |
Symfony のセキュリティ
Security の指示に従ってインストール
security-bundle も最初から入っている
/** | |
* Japanese locale file for Sencha Touch 2 | |
* File: ext-lang-ja.js | |
* Auther: sunvisor/Xenophy (hisashi.nakamura@xenophy.com) | |
* history: 2012-09-15 Prototype Version (test is not completed) | |
**/ | |
Ext.onReady(function() { | |
var cm = Ext.ClassManager, | |
exists = Ext.Function.bind(cm.get, cm); |