Skip to content

Instantly share code, notes, and snippets.

Ryan McCullagh rmccullagh

  • Chicago
Block or report user

Report or block rmccullagh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View amezmo-number-formatter.php
<?php
require_once 'vendor/autoload.php';
class Invoice
{
/**
* @var \Stripe\Invoice;
*/
private $invoice;
View after.pull.sh
#!/bin/bash
# This hook is executed after pull
env;
echo "1" > "${APPLICATION_ROOT}/IS_PROD";
View registerCoreContainerAliases.php
<?php
class Application {
// Ommited
public function registerCoreContainerAliases()
{
foreach ([
'app' => [\Illuminate\Foundation\Application::class, \Illuminate\Contracts\Container\Container::class, \Illuminate\Contracts\Foundation\Application::class, \Psr\Container\ContainerInterface::class],
'auth' => [\Illuminate\Auth\AuthManager::class, \Illuminate\Contracts\Auth\Factory::class],
@rmccullagh
rmccullagh / registerCoreContainerAliases.php
Last active May 28, 2019
registerCoreContainerAliases.php
View registerCoreContainerAliases.php
<?php
namespace Illuminate\Foundation;
use Closure;
use RuntimeException;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Support\Collection;
use Illuminate\Container\Container;
View BeforeUsingDI.php
<?php
namespace App\Http\Api\Site\Progress;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\Log;
use App\Http\Api\Constants\AmezmoApi;
use App\Http\Api\BaseApiController;
use App\Http\Api\Site\Progress\Models\ProgressReport;
View UsingDI.php
<?php
namespace App\Http\Api\Site\Progress;
use \Illuminate\Redis\Connections\PhpRedisConnection;
use \Illuminate\Contracts\Routing\ResponseFactory;
use \Psr\Log\LoggerInterface;
use App\Http\Api\Constants\AmezmoApi;
use App\Http\Api\BaseApiController;
View Asset.php
<?php
namespace App\Asset;
use Illuminate\Support\Facades\Facade;
class Asset extends Facade
{
/**
* Get the registered name of the component.
View AssetManager.php
<?php
namespace App\Asset;
use App\Asset\AssetManagerInterface;
class AssetManager implements AssetManagerInterface
{
/** @var string */
private $webpackAssetHash;
View app.php
<?php
// Note this file is stripped down for example purposes
return [
'providers' => [
// Custom service providers are added here
App\Asset\AssetServiceProvider::class
],
/*
View AssetServiceProvider.php
<?php
namespace App\Asset;
use Illuminate\Contracts\Foundation\Application;
use App\Asset\AssetManager;
class AssetServiceProvider extends \Illuminate\Support\ServiceProvider
{
You can’t perform that action at this time.