This file contains 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
$config['language.types']['negotiation'] = [ | |
'language_interface' => [ | |
'method_weights' => [ | |
'language-user-admin' => -19, | |
'language-url' => -18, | |
'language-session' => -17, | |
'language-user' => -16, | |
'language-browser' => -15, | |
'language-selected' => -14, | |
'language-astra-site' => -20 |
This file contains 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 | |
function oa_core_visibility_data($node) { | |
$static = &drupal_static(__FUNCTION__, array()); | |
if (!empty($static[$node->nid])) { | |
return $static[$node->nid]; | |
} | |
$data = array(); | |
$data['published'] = !empty($node->status); | |
$data['archived'] = FALSE; |
This file contains 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
/** | |
* {@inheritdoc} | |
*/ | |
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { | |
/** @var \Drupal\Core\Field\BaseFieldDefinition[] $fields */ | |
$fields = parent::baseFieldDefinitions($entity_type); | |
$fields['tid']->setLabel(t('Term ID')) | |
->setDescription(t('The term ID.')); |
This file contains 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
Use of ADRs to track Architectural Decisions | |
============================================ | |
Context | |
------- | |
At the moment architectural decisions are being made when required and they | |
are not recorded. | |
Decision |
This file contains 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
FROM quay.io/continuouspipe/php5.6-apache:latest | |
MAINTAINER Brian Ward <bward@inviqa.com> | |
# Install base packages \ | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get -yq install \ | |
php-gd \ | |
php-xml \ | |
php-json \ |
This file contains 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 | |
require __DIR__ . '/vendor/autoload.php'; | |
use League\Flysystem\Filesystem; | |
use League\Flysystem\Adapter\Local; | |
$container = new \Slim\Container; | |
// Register the Flysystem service. |
This file contains 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 | |
require __DIR__ . '/vendor/autoload.php'; | |
use League\Flysystem\Filesystem; | |
use League\Flysystem\Adapter\Local; | |
$app = new Slim\App(); | |
// Routes |
This file contains 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
composer require league/flysystem |
This file contains 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 | |
require __DIR__ . '/vendor/autoload.php'; | |
$app = new Slim\App(); | |
// Routes | |
$app->get('/', function($request, $response, $args) { | |
return $response->getBody()->write('Welcome to the application.'); | |
}); |
This file contains 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 -S localhost:4000 |
NewerOlder