Browse Source

Cleaning up a little

Richard Knight 6 years ago
parent
commit
1db877e4d8
2 changed files with 0 additions and 54 deletions
  1. 0 13
      src/Api/ApiClient.php
  2. 0 41
      src/Controller/SquareController.php

+ 0 - 13
src/Api/ApiClient.php

@@ -1,13 +0,0 @@
-<?php
-
-namespace Bolt\Extension\Ginger\Squarepay\Api;
-
-use Silex\Application;
-
-class ApiClient
-{
-	function __construct(Application $app)
-	{
-	}
-}
-

+ 0 - 41
src/Controller/SquareController.php

@@ -1,41 +0,0 @@
-<?php
-
-namespace Bolt\Extension\Ginger\Squarepay\Controller;
-
-use Bolt\Controller\Base;
-use Silex\Application;
-use Silex\ControllerCollection;
-use Silex\ControllerProviderInterface;
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\Response;
-
-/**
- * The controller for Square backend routes.
- *
- * @author Richard Knight <rich@apewave.com>
- */
-class SquareController extends Base
-{
-    /**
-     * {@inheritdoc}
-     */
-    public function addRoutes(ControllerCollection $c)
-    {
-        $c->match('/oauth/{type}', [$this, 'oauthHandler']);
-        return $c;
-    }
-
-    /**
-     * @param Request $request
-     * @param string  $type
-     *
-     * @return Response
-     */
-    public function oauthHandler(Request $request, $type)
-    {
-        if ($type === 'dropbear') {
-            return new Response('Drop bear sighted!', Response::HTTP_OK);
-        }
-        return new Response('Koala in a tree!', Response::HTTP_OK);
-    }
-}