Skip to content

Instantly share code, notes, and snippets.

View crevillo's full-sized avatar

Carlos Revillo crevillo

View GitHub Profile
class UrlGenerator implements UrlGeneratorInterface
{
public function generate(string $name, array $parameters = [], int $referenceType = self::ABSOLUTE_PATH)
{
return 'hola';
}
}
<?php
$langs = [
"es" => [
"label" => "es",
"name" => "Spanish"
"locales => [
"es_ar" => [
"label" => "es_AR",
"name" => "Spanish (Argentina)
]
<?php
class Person
{
private $name;
public function getName()
{
return $this->name;
}
<?php
class AppBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
$container->addCompilerPass(new ToolsImporters());
$container->addCompilerPass(new MainMenuLinksPass());
$container->addCompilerPass(new BreadcrumbBuilderPass());
}
}
<testsuites>
<testsuite name="unit">
<directory>tests</directory>
<exclude>tests/Functional</exclude>
</testsuite>
<testsuite name="functional">
<directory>tests/Functional</directory>
</testsuite>
</testsuites>
<?php
class DummyTest extends WebTestCase
{
public function testDummy()
{
$client = static::createClient();
$client->request('GET', '/');
ez_io:
binarydata_handlers:
awss3:
flysystem:
adapter: aws_s3_adapter
gcloud:
flysystem:
adapter: gcloud
oneup_flysystem:
adapters:
aws_s3_adapter:
awss3v3:
client: amazon.s3_client
bucket: "your-bucket" # Your bucket name
prefix: "%database_name%"
gcloud:
googlecloudstorage:
client: google.storage_client
amazon.s3_client:
class: Aws\S3\S3Client
arguments:
-
version: "latest"
region: "us-east-2" # The region string of your chosen region
credentials:
key: "·" # AWS key ID
secret: "···········" # AWS Secret key
@crevillo
crevillo / dfs.yml
Last active October 21, 2018 11:56
ezpublish:
system:
default:
io:
metadata_handler: dfs
binarydata_handler: awss3