generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
176 additions
and
149 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Sensson\DirectAdmin\Exceptions; | ||
|
||
use Symfony\Component\HttpKernel\Exception\HttpException; | ||
|
||
class AuthenticationFailed extends HttpException | ||
{ | ||
public static function create(): static | ||
{ | ||
return new static(401, 'Unauthorized. Please check the credentials.'); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Sensson\DirectAdmin\Exceptions; | ||
|
||
use Symfony\Component\HttpKernel\Exception\HttpException; | ||
|
||
class CommandNotFound extends HttpException | ||
{ | ||
public static function create(string $command): static | ||
{ | ||
return new static(405, 'Command `'.$command.'` does not exist.'); | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Sensson\DirectAdmin\Exceptions; | ||
|
||
use Symfony\Component\HttpKernel\Exception\HttpException; | ||
|
||
class Unauthorized extends HttpException | ||
{ | ||
public static function create(): static | ||
{ | ||
return new static(403, 'You do not have access to this resource.'); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.