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
{ | |
"command": "docker", | |
"args": [ | |
"run", | |
"-i", | |
"--rm", | |
"-e", "CONFLUENCE_URL", | |
"-e", "CONFLUENCE_USERNAME", | |
"-e", "CONFLUENCE_API_TOKEN", | |
"-e", "JIRA_URL", |
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
class ApiClientFactory { | |
/** | |
* {@inheritdoc} | |
*/ | |
public function __construct( | |
private readonly ClientFactory $clientFactory, | |
#[Autowire(service: 'domain.negotiator')] | |
protected DomainNegotiator $domainNegotiator, | |
protected ConfigFactoryInterface $configFactory, |
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
class ApiClientFactory { | |
/** | |
* The client factory service. | |
* | |
* @var ClientFactory | |
*/ | |
protected $clientFactory; | |
/** |
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
services: | |
mymodule.api_client_factory: | |
class: Drupal\mymodule\Factory\ApiClientFactory | |
arguments: ['@http_client_factory', '@domain.negotiator', '@config.factory', '@logger.factory'] |
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
class ApiClientFactory { | |
/** | |
* {@inheritdoc} | |
*/ | |
public function __construct( | |
private readonly ClientFactory $clientFactory, | |
protected DomainNegotiator $domainNegotiator, | |
protected ConfigFactoryInterface $configFactory, | |
protected LoggerChannelFactoryInterface $loggerChannelFactory, |
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
services: | |
mymodule.api_client_factory: | |
class: Drupal\mymodule\Factory\ApiClientFactory | |
autowire: true |
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
# Block common Wordpress paths. | |
RewriteCond %{REQUEST_URI} ^/wp-(.*)? [NC] | |
RewriteRule ^ - [F] |
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 | |
declare(strict_types=1); | |
namespace App\Maker; | |
use Symfony\Bundle\MakerBundle\ConsoleStyle; | |
use Symfony\Bundle\MakerBundle\Maker\AbstractMaker; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Bundle\MakerBundle\DependencyBuilder; |
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
id: redirects | |
label: Old article paths. | |
migration_group: content | |
source: | |
plugin: url | |
data_fetcher_plugin: http | |
data_parser_plugin: simple_xml | |
urls: http://kevinquillen.com/atom.xml | |
namespaces: | |
atom: http://www.w3.org/2005/Atom |
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
openssl req -newkey rsa:2048 -x509 -nodes -keyout cert.key -new -out cert.crt -subj /CN=*.docker.localhost -reqexts SAN -extensions SAN -config <(cat /etc/ssl/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:*.docker.localhost')) -sha256 -days 3650 |
NewerOlder