Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

vidy videni

🎯
Focusing
  • Chengdu
View GitHub Profile
View gist:e573a68f74dbff4e8103dd47be7fbfc5
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Validator\Constraints as Assert;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use Symfony\Component\Serializer\Annotation\Groups;
use ApiPlatform\Core\Annotation as API;
use App\Controller\Glasses as Action;
View l.txt
êaÊÕÔ:
Ê14ë˙ú|fÛ÷‚fi∆⁄∞®'ê¸⁄´RÛÍ‚Å/€·≈-ô,z√ ^∑«7®'RÊ?F2%5ëˆm§êfi{ÇQä°ÔU£]"ÉçÇ]œéŸ&æ1˙g¬¥ÇµJE{˘“¸Q9ΩªrÊ•Mµ,aã√¿}`Ì…ΩÀ»ù ‰…véá¨÷Ù√ú0ßîmü˚≤3
Copyright (c) by www.08cms.com
This is not a text file. Please don't edit it with any editor.
@videni
videni / pimcore_installation_error.json
Last active Jul 31, 2017
pimcore ecommerce installation error
View pimcore_installation_error.json
Error
Server threw exception - could not perform action. Please reload the admin interface and try again.
Timestamp: Mon Jul 31 2017 15:46:45 GMT+0800 (CST)
Status: 500 | Internal Server Error
URL: /admin/document/tree-get-root
Message: Call to a member function isAllowed() on null
Trace: [
{
View gist:7f2e70e67af4430333f78082eeb5ce73
Process: php-fpm [6843]
Path: /usr/local/Cellar/php70/7.0.2/sbin/php-fpm
Identifier: php-fpm
Version: 0
Code Type: X86-64 (Native)
Parent Process: php-fpm [88]
Responsible: php-fpm [6843]
User ID: 501
Date/Time: 2016-05-12 07:16:29.668 +0800
View gist:f496d78cc9db7f66791c
( ! ) Drupal\Core\Database\ConnectionNotDefinedException: The specified database connection is not defined: default in /usr/share/nginx/html/drupal/core/lib/Drupal/Core/Database/Database.php on line 366
Call Stack
# Time Memory Function Location
1 0.0001 234504 {main}( ) ../install.php:0
2 0.0029 402656 install_drupal( ) ../install.php:32
3 0.0029 407672 install_begin_request( ) ../install.core.inc:98
4 0.0156 732336 Drupal\Core\DrupalKernel->boot( ) ../install.core.inc:363
5 0.0161 737848 Drupal\Core\Installer\InstallerKernel->initializeContainer( ) ../DrupalKernel.php:377
6 0.0162 738352 Drupal\Core\DrupalKernel->initializeContainer( ) ../InstallerKernel.php:24
7 0.0162 739168 Drupal\Core\DrupalKernel->compileContainer( ) ../DrupalKernel.php:705
View gist:0fde26b7122f1c15a772
( ! ) Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "string_translation". in /usr/share/nginx/html/drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php on line 303
Call Stack
# Time Memory Function Location
1 0.0006 240344 {main}( ) ../install.php:0
2 0.0263 414944 install_drupal( ) ../install.php:32
3 0.0264 419960 install_begin_request( ) ../install.core.inc:98
4 0.0919 732952 install_verify_database_settings( ) ../install.core.inc:331
5 0.0941 733696 install_database_errors( ) ../install.core.inc:1011
6 0.0991 799928 db_run_tasks( ) ../install.core.inc:1042
View gist:ef4e38fa603436aceff2
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Block\SystemPoweredByBlock.
*/
namespace Drupal\videni\Plugin\Block;
use Drupal\block\BlockBase;
View gist:db57b82c6a9d9db8c476
id: vid_user_register
weight: null
status: true
uuid: 0c8f6069-f838-4ddc-b500-ff7b85ac1ee9
langcode: zh-hans
dependencies:
module:
- videni
theme:
- vid
View gist:11361833
1.course.routing.yaml
course.add:
path: '/course/add'
defaults:
_entity_form: 'course.default'
_title: 'create new course'
requirements:
_permission: 'create new courses'
@videni
videni / gist:11250288
Last active Aug 29, 2015
NodeFormController
View gist:11250288
/**
* Overrides Drupal\Core\Entity\EntityFormController::form().
*/
public function form(array $form, array &$form_state) {
/** @var \Drupal\node\NodeInterface $node */
$node = $this->entity;
if ($this->operation == 'edit') {
$form['#title'] = $this->t('<em>Edit @type</em> @title', array('@type' => node_get_type_label($node), '@title' => $node->label()));
}