Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

use Psr\Container\ContainerInterface #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Conduit/Controllers/Article/ArticleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Conduit\Models\Article;
use Conduit\Models\Tag;
use Conduit\Transformers\ArticleTransformer;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use League\Fractal\Resource\Collection;
use League\Fractal\Resource\Item;
use Slim\Http\Request;
Expand All @@ -27,7 +27,7 @@ class ArticleController
/**
* UserController constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Psr\Container\ContainerInterface $container
*
* @internal param $auth
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Conduit/Controllers/Article/CommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Conduit\Models\Comment;
use Conduit\Transformers\ArticleTransformer;
use Conduit\Transformers\CommentTransformer;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use League\Fractal\Resource\Collection;
use League\Fractal\Resource\Item;
use Slim\Http\Request;
Expand All @@ -28,7 +28,7 @@ class CommentController
/**
* UserController constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Psr\Container\ContainerInterface $container
*
* @internal param $auth
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Conduit/Controllers/Article/FavoriteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Conduit\Models\Article;
use Conduit\Transformers\ArticleTransformer;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use League\Fractal\Resource\Item;
use Slim\Http\Request;
use Slim\Http\Response;
Expand All @@ -20,7 +20,7 @@ class FavoriteController
/**
* UserController constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Psr\Container\ContainerInterface $container
*
* @internal param $auth
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Conduit/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Conduit\Models\User;
use Conduit\Transformers\UserTransformer;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use League\Fractal\Resource\Item;
use Slim\Http\Request;
use Slim\Http\Response;
Expand All @@ -25,7 +25,7 @@ class LoginController
/**
* RegisterController constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Psr\Container\ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Conduit/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Conduit\Models\User;
use Conduit\Transformers\UserTransformer;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use League\Fractal\Resource\Item;
use Slim\Http\Request;
use Slim\Http\Response;
Expand All @@ -25,7 +25,7 @@ class RegisterController
/**
* RegisterController constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Psr\Container\ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Conduit/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

namespace Conduit\Controllers;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

class BaseController
{

/**
* @var \Interop\Container\ContainerInterface
* @var \Psr\Container\ContainerInterface
*/
protected $container;

/**
* BaseController constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Psr\Container\ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Conduit/Controllers/User/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Conduit\Models\User;
use Conduit\Transformers\ProfileTransformer;
use Conduit\Transformers\UserTransformer;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use League\Fractal\Resource\Item;
use Slim\Http\Request;
use Slim\Http\Response;
Expand All @@ -21,7 +21,7 @@ class ProfileController
/**
* UserController constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Psr\Container\ContainerInterface $container
*
* @internal param $auth
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Conduit/Controllers/User/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Conduit\Controllers\User;

use Conduit\Transformers\UserTransformer;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use League\Fractal\Resource\Item;
use Slim\Http\Request;
use Slim\Http\Response;
Expand All @@ -24,7 +24,7 @@ class UserController
/**
* UserController constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Psr\Container\ContainerInterface $container
*
* @internal param $auth
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Conduit/Middleware/OptionalAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

namespace Conduit\Middleware;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Slim\DeferredCallable;

class OptionalAuth
{

/**
* @var \Interop\Container\ContainerInterface
* @var \Psr\Container\ContainerInterface
*/
private $container;

/**
* OptionalAuth constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Psr\Container\ContainerInterface $container
*
* @internal param \Slim\Middleware\JwtAuthentication $jwt
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Conduit/Services/Auth/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Conduit\Services\Auth;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

Expand Down