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 | |
namespace Mutoco\GraphQL; | |
use SilverStripe\GraphQL\Schema\Field\ModelQuery; | |
use SilverStripe\GraphQL\Schema\Interfaces\ModelQueryPlugin; | |
use SilverStripe\GraphQL\Schema\Interfaces\SchemaUpdater; | |
use SilverStripe\GraphQL\Schema\Schema; | |
use SilverStripe\GraphQL\Schema\Type\Enum; |
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 | |
server('live', '{{LiveServer}}', 22) | |
->user('{{SshUser}}') | |
->forwardAgent() // You can use identity key, ssh config, or username/password to auth on the server. | |
->stage('live') | |
->env('deploy_path', '{{DeployDir}}'); // Define the base path to deploy your project to. | |
server('staging', '{{StagingServer}}', 22) | |
->user('{{SshUser}}') | |
->forwardAgent() // You can use identity key, ssh config, or username/password to auth on the server. |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Dummy</title> | |
<link rel="stylesheet" href="dist/css/styles.css"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | |
</head> | |
<body> | |
<div id="app" > |
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 brettt89/silverstripe-web:7.4-apache | |
RUN apt-get update && apt-get install -y \ | |
libzip-dev zip unzip git nano | |
# Install additional extensions | |
RUN install-php-extensions imagick xdebug | |
RUN echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ | |
&& echo "xdebug.client_port=9003" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ |
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 | |
namespace MyProject\GraphQL; | |
use SilverStripe\GraphQL\Schema\Field\ModelQuery; | |
use SilverStripe\GraphQL\Schema\Interfaces\ModelQueryPlugin; | |
use SilverStripe\GraphQL\Schema\Interfaces\SchemaUpdater; | |
use SilverStripe\GraphQL\Schema\Schema; | |
use SilverStripe\GraphQL\Schema\Type\Enum; |
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 | |
namespace Bummzack\Shop\Checkout; | |
use SilverShop\Checkout\CheckoutComponentConfig; | |
use SilverShop\Checkout\Component\Notes; | |
use SilverShop\Checkout\Component\Terms; | |
use SilverShop\Model\Order; | |
class Config extends CheckoutComponentConfig |
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 | |
/** | |
* Extension to add custom field to AddProductForm and VariationForm | |
*/ | |
class AddProductFormExtension extends Extension | |
{ | |
public function updateAddProductForm() | |
{ | |
// Add a new Textfield to the form-fields |
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 | |
namespace App\ORM; | |
use Exception; | |
use Psr\Container\NotFoundExceptionInterface; | |
use SilverStripe\Core\Injector\Injector; | |
use SilverStripe\ORM\FieldType\DBVarchar; | |
class Markdown extends DBVarchar |
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 | |
namespace Bummzack\Extensions; | |
use SilverStripe\Core\ClassInfo; | |
use SilverStripe\ORM\DataExtension; | |
use SilverStripe\ORM\DataObject; | |
use SilverStripe\ORM\Queries\SQLDelete; | |
use SilverStripe\Versioned\Versioned; |
NewerOlder