This file contains hidden or 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
<?php | |
... | |
class BlablaAdmin extends Admin | |
{ | |
... | |
public function createQuery($context = 'list') | |
{ | |
$query = parent::createQuery($context); | |
$em = $query->getQueryBuilder()->getEntityManager(); |
This file contains hidden or 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
LOCK TABLES `table_name` WRITE; | |
SET autocommit=0; | |
SET foreign_key_checks=0; | |
SET unique_checks=0; | |
/*.... | |
INSERT ... ON DUPLICATE KEY UPDATE | |
INSERT IGNORE INTO | |
....*/ |
This file contains hidden or 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
!!! | |
html | |
head | |
meta(charset="utf-8") | |
meta(name="viewport", content="width=device-width, initial-scale=1.0") | |
meta(name="description", content="") | |
meta(name="author", content="") | |
title Starter Template for Bootstrap | |
link(rel="stylesheet", type="text/css", href="/css/main.css") | |
//[if lt IE 9] |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<link rel="shortcut icon" href="../../assets/ico/favicon.png"> |
This file contains hidden or 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
<?php | |
namespace YourBundle\Composer; | |
class ScriptHandler | |
{ | |
public static function updateIcuVersion($event) | |
{ | |
if (false === self::isCentos()) { | |
return; |
This file contains hidden or 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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/-(git\/ \1 )/' | |
} | |
# set a fancy prompt (non-color, unless we know we "want" color) | |
case "$TERM" in | |
xterm-color) color_prompt=yes;; | |
esac | |
force_color_prompt=yes |
NewerOlder