-
Notifications
You must be signed in to change notification settings - Fork 38
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
1 parent
8d3b1ed
commit 43338e6
Showing
56 changed files
with
49 additions
and
93 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 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
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Interface LocalesManager | ||
* | ||
* @package Arcanedev\Localization\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface LocalesManager | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Interface Localization | ||
* | ||
* @package Arcanedev\Localization\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Localization | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Interface Negotiator | ||
* | ||
* @package Arcanedev\Localization\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Negotiator | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Interface RouteBindable | ||
* | ||
* @package Arcanedev\Localization\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface RouteBindable | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Interface RouteTranslator | ||
* | ||
* @package Arcanedev\Localization\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface RouteTranslator | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Interface Url | ||
* | ||
* @package Arcanedev\Localization\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Url | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class Locale | ||
* | ||
* @package Arcanedev\Localization\Entities | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class Locale implements Arrayable, Jsonable, JsonSerializable | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Class LocaleCollection | ||
* | ||
* @package Arcanedev\Localization\Entities | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class LocaleCollection extends Collection | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Class SupportedLocaleCollection | ||
* | ||
* @package Arcanedev\Localization\Entities | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class SupportedLocaleCollection extends Collection | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class TranslationHasBeenSet | ||
* | ||
* @package Arcanedev\Localization\Events | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class TranslationHasBeenSet | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class InvalidTranslationException | ||
* | ||
* @package Arcanedev\Localization\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class InvalidTranslationException extends LocalizationException {} |
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Class LocalizationException | ||
* | ||
* @package Arcanedev\Localization\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
abstract class LocalizationException extends Exception {} |
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class UndefinedSupportedLocalesException | ||
* | ||
* @package Arcanedev\Localization\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class UndefinedSupportedLocalesException extends LocalizationException | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class UnsupportedLocaleException | ||
* | ||
* @package Arcanedev\Localization\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class UnsupportedLocaleException extends LocalizationException {} |
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class UntranslatableAttributeException | ||
* | ||
* @package Arcanedev\Localization\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class UntranslatableAttributeException extends LocalizationException | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
/** | ||
* Class Localization | ||
* | ||
* @package Arcanedev\Localization | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class Localization implements LocalizationContract | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Class LocalizationServiceProvider | ||
* | ||
* @package Arcanedev\Localization | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class LocalizationServiceProvider extends PackageServiceProvider | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class LocaleCookieRedirect | ||
* | ||
* @package Arcanedev\Localization\Middleware | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class LocaleCookieRedirect extends Middleware | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class LocaleSessionRedirect | ||
* | ||
* @package Arcanedev\Localization\Middleware | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class LocaleSessionRedirect extends Middleware | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class LocalizationRedirect | ||
* | ||
* @package Arcanedev\Localization\Middleware | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class LocalizationRedirect extends Middleware | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class LocalizationRoutes | ||
* | ||
* @package Arcanedev\Localization\Middleware | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class LocalizationRoutes extends Middleware | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class Middleware | ||
* | ||
* @package Arcanedev\Localization\Bases | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
abstract class Middleware | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class TranslationRedirect | ||
* | ||
* @package Arcanedev\Localization\Middleware | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class TranslationRedirect extends Middleware | ||
|
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 |
---|---|---|
|
@@ -4,12 +4,10 @@ | |
|
||
namespace Arcanedev\Localization\Providers; | ||
|
||
use Arcanedev\Localization\Contracts\{ | ||
LocalesManager as LocalesManagerContract, | ||
Localization as LocalizationContract, | ||
Negotiator as NegotiatorContract, | ||
RouteTranslator as RouteTranslatorContract | ||
}; | ||
use Arcanedev\Localization\Contracts\LocalesManager as LocalesManagerContract; | ||
use Arcanedev\Localization\Contracts\Localization as LocalizationContract; | ||
use Arcanedev\Localization\Contracts\Negotiator as NegotiatorContract; | ||
use Arcanedev\Localization\Contracts\RouteTranslator as RouteTranslatorContract; | ||
use Arcanedev\Localization\Localization; | ||
use Arcanedev\Localization\Utilities\{LocalesManager, Negotiator, RouteTranslator}; | ||
use Arcanedev\Support\Providers\ServiceProvider; | ||
|
@@ -18,7 +16,6 @@ | |
/** | ||
* Class DeferredServicesProvider | ||
* | ||
* @package Arcanedev\Localization\Providers | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class DeferredServicesProvider extends ServiceProvider implements DeferrableProvider | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
/** | ||
* Class RoutingServiceProvider | ||
* | ||
* @package Arcanedev\Localization\Providers | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class RoutingServiceProvider extends ServiceProvider | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Class Router | ||
* | ||
* @package Arcanedev\Localization\Routing | ||
* @author ARCANEDEV <[email protected]> | ||
* | ||
* @mixin \Illuminate\Routing\Router | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Trait HasTranslations | ||
* | ||
* @package Arcanedev\Localization\Traits | ||
* @author ARCANEDEV <[email protected]> | ||
* | ||
* @property array attributes | ||
|
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 |
---|---|---|
|
@@ -5,16 +5,14 @@ | |
namespace Arcanedev\Localization\Utilities; | ||
|
||
use Arcanedev\Localization\Contracts\LocalesManager as LocalesManagerContract; | ||
use Arcanedev\Localization\Entities\Locale; | ||
use Arcanedev\Localization\Entities\LocaleCollection; | ||
use Arcanedev\Localization\Entities\{Locale, LocaleCollection}; | ||
use Arcanedev\Localization\Exceptions\UndefinedSupportedLocalesException; | ||
use Arcanedev\Localization\Exceptions\UnsupportedLocaleException; | ||
use Illuminate\Contracts\Foundation\Application as ApplicationContract; | ||
|
||
/** | ||
* Class LocalesManager | ||
* | ||
* @package Arcanedev\Localization | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class LocalesManager implements LocalesManagerContract | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class Negotiator | ||
* | ||
* @package Arcanedev\Localization\Utilities | ||
* @author ARCANEDEV <[email protected]> | ||
* | ||
* Negotiates language with the user's browser through the Accept-Language HTTP header or the user's host address. | ||
|
Oops, something went wrong.