Skip to content

Instantly share code, notes, and snippets.

View EclipseGc's full-sized avatar

Kris Vanderwater EclipseGc

View GitHub Profile
{
"require": {
"symfony/class-loader": "2.3.*",
"symfony/http-foundation": "2.3.*",
"symfony/http-kernel": "2.3.*",
"symfony/event-dispatcher": "~2.3",
"symfony/dependency-injection": "~2.3",
"symfony/routing": "2.3.*",
"symfony/config": "2.3.*",
"symfony/validator": "2.3.*",
<?php
// Connections
$connection = array(
'database' => 'sframework',
'username' => 'root',
'password' => 'root',
'host' => 'localhost',
'port' => '',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
<?php
$container = require_once __DIR__ . '/../src/container.php';
use Symfony\Component\HttpFoundation\Request;
$request = Request::createFromGlobals();
$request->attributes->add($container->get('plugin.manager.routes')->matchRoute($request));
$response = $container->get('kernel.cache')->handle($request)->send();
<?php
/**
* @file
* Contains SiteManager\Core\Context\Site.
*/
namespace SiteManager\Core\Context;
use Drupal\Core\Database\Database;
use SiteManager\Core\Annotation\Context;
<?php
class myManager {
$definitions = array();
public function getDefinition($plugin_id) {
if (!$this->definitions) {
$this->getDefinitions();
}
<?php
/**
* @file
* Contains SiteManager\Core\Context\Route.
*/
namespace SiteManager\Core\Context;
use Drupal\Core\Database\Database;
use SiteManager\Core\Annotation\Context;
<?php
// Something somewhere does basically this: you'll have to look through the bot code to find the exact events.
Drupal::service('event_dispatcher')->dispatch(BlockPluginEvents::PERMANENTLY_UNAVAILABLE, $event);
{
"name": "drupal/drupal",
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"type": "drupal-core",
"license": "GPL-2.0+",
"require": {
"symfony/class-loader": "2.3.*",
"symfony/dependency-injection": "2.3.*",
"symfony/event-dispatcher": "2.3.*",
"symfony/http-foundation": "2.3.*",
{
"require": {
"symfony/class-loader": "2.3.*",
"symfony/http-foundation": "2.3.*",
"symfony/http-kernel": "2.3.*",
"symfony/event-dispatcher": "~2.3",
"symfony/dependency-injection": "~2.3",
"symfony/routing": "2.3.*",
"symfony/config": "2.3.*",
"symfony/validator": "2.3.*",
Problem 1
- Installation request for symfony/icu 1.2.x-dev -> satisfiable by symfony/icu[1.2.x-dev].
- symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 2
- symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- symfony/symfony 2.3.x-dev requires symfony/icu ~1.0 -> satisfiable by symfony/icu[1.2.x-dev].
- Installation request for symfony/symfony 2.3.x-dev -> satisfiable by symfony/symfony[2.3.x-dev].