Skip to content

Instantly share code, notes, and snippets.

View sminnee's full-sized avatar

Sam Minnée sminnee

View GitHub Profile

Thank you for your interest in contributing to open source software projects (“Projects”) made available by SilverStripe Limited ("SliverStripe"). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SilverStripe in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact [email protected].

The purpose of this Agreement is to ensure tha SilverStripe is able to provide a clear and unambiguous open-source license to SilverStripe source code, so that community involvement doesn't stop us from being able to continue supporting these projects. This Contributor License Agerement won't limit the way that you can use your Contributions.

commit ad1d7c59ff195c0e58125de54808a9dfadea5389
Author: Sam Minnee <[email protected]>
Date: Wed Oct 11 11:41:27 2017 +1300
NEW: Add support for type = silverstripe-vendormodule
diff --git a/mysite/code/services/AddonUpdater.php b/mysite/code/services/AddonUpdater.php
index b483ae1..f0fae63 100644
--- a/mysite/code/services/AddonUpdater.php
+++ b/mysite/code/services/AddonUpdater.php
@sminnee
sminnee / herring.sh
Last active September 19, 2017 05:52
#!/bin/bash -eux
source $1
${@:2}
<?php
namespace SilverStripe\TagManager\SnippetProvider;
use SilverStripe\TagManager\SnippetProvider;
/**
* A snippet provider that allow
*/
class HtmlSnippetProvider implements SnippetProvider
diff --git a/src/Core/CustomMethods.php b/src/Core/CustomMethods.php
index f37be48..749b4d0 100644
--- a/src/Core/CustomMethods.php
+++ b/src/Core/CustomMethods.php
@@ -61,6 +61,10 @@ trait CustomMethods
switch (true) {
case isset($config['property']) : {
+ if (!empty($config['callSetOwnerFirst']) && !isset($this->{$config['property']})) {
+ $this->getExtensionInstances();
Installing silverstripe/installer (4.0.0-beta2)
- Installing silverstripe/installer (4.0.0-beta2) Downloading: 100%
Created project in ss4b2
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 65 installs, 0 updates, 0 removals
- Installing composer/installers (v1.3.0) Loading from cache
- Installing silverstripe/recipe-plugin (0.2.0) Loading from cache
- Installing psr/container (1.0.0) Loading from cache
- Installing paragonie/random_compat (v2.0.10) Loading from cache
ERROR [Emergency]: Uncaught Aws\S3\Exception\S3Exception: Error executing "PutObject" on "-" resulted in a `403 Forbidden` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>E28CD0 (truncated...)
AccessDenied (client): Access Denied - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>--</RequestId><HostId>--</HostId></Error>
IN POST /ss4/admin/assets/api/createFile
Line 192 in /Users/sminnee/Sites/ss4/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php
Source
======
diff --git a/src/Core/Startup/ParameterConfirmationToken.php b/src/Core/Startup/ParameterConfirmationToken.php
index 45b3630..7a88783 100644
--- a/src/Core/Startup/ParameterConfirmationToken.php
+++ b/src/Core/Startup/ParameterConfirmationToken.php
@@ -185,8 +185,7 @@ class ParameterConfirmationToken
protected function currentURL()
{
return Controller::join_links(
- BASE_URL,
- '/',
diff --git a/src/Core/Startup/ParameterConfirmationToken.php b/src/Core/Startup/ParameterConfirmationToken.php
index 45b3630..ab2a546 100644
--- a/src/Core/Startup/ParameterConfirmationToken.php
+++ b/src/Core/Startup/ParameterConfirmationToken.php
@@ -186,7 +186,6 @@ class ParameterConfirmationToken
{
return Controller::join_links(
BASE_URL,
- '/',
$this->request->getURL(false)
@sminnee
sminnee / internalcache.php
Created July 11, 2017 22:47
InternalCache trait?
<?php
class ImageBackendFactory implements Factory
{
use InternalCache;
public function create($service, array $params = array())
{