Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel components v8 #2576

Merged
merged 25 commits into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c6a3c32
get response body
luceos Jan 27, 2021
d4bceff
update actions ci
luceos Jan 27, 2021
d0de12f
include json for 4 spaces tab
luceos Jan 27, 2021
4cb0b0a
update deps
luceos Jan 27, 2021
bfbb74a
provide output int for process code exit
luceos Jan 27, 2021
5feef61
adhere to parent type hint of builder
luceos Jan 27, 2021
be31a89
mailer instance now needs a name, multiple can be instantiated
luceos Jan 27, 2021
71eec54
getOriginal now uses mutators in the model
luceos Jan 27, 2021
1578869
assertRegExp => assertMatchesRegularExpression for phpunit
luceos Jan 27, 2021
cb158ae
return the actual return integer for exit in a cli process
luceos Jan 27, 2021
b8db6fd
ignore the phpunit cache file
luceos Jan 27, 2021
0ec5305
symfon 5+
luceos Feb 1, 2021
db4fd9d
re-add console
luceos Feb 1, 2021
75ea3ad
increase timeout
luceos Feb 1, 2021
a03b23d
green tests
luceos Feb 1, 2021
b6c0eaf
Apply fixes from StyleCI
luceos Feb 1, 2021
b96b067
Temporarily loosen MailableInterface requirements
askvortsov1 Feb 18, 2021
bf6cb74
Temporarily provide (and autoload) old symfony translator interface
askvortsov1 Feb 18, 2021
d3a5e84
Apply fixes from StyleCI
askvortsov1 Feb 18, 2021
aeddce6
make queue exception handler compatible with the contract of L8
luceos Mar 1, 2021
e7f29b1
remove all v in dep constraint
luceos Mar 3, 2021
eb28f52
Update phpunit schema for newer version
askvortsov1 Mar 5, 2021
6ba843f
More phpunit testcase tweaks for v9
askvortsov1 Mar 5, 2021
f8d3081
Merge branch 'master' into dk/illuminate-v8
askvortsov1 Mar 5, 2021
ca04328
Apply fixes from StyleCI
askvortsov1 Mar 5, 2021
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
Prev Previous commit
Next Next commit
Temporarily provide (and autoload) old symfony translator interface
  • Loading branch information
askvortsov1 committed Mar 3, 2021
commit bf6cb740baad89429cec490c285de91713612806
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"Flarum\\": "src/"
},
"files": [
"src/helpers.php"
"src/helpers.php",
"src/TranslatorInterface.php"
]
},
"autoload-dev": {
Expand Down
3 changes: 2 additions & 1 deletion src/Locale/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
use Illuminate\Contracts\Translation\Translator as TranslatorContract;
use Symfony\Component\Translation\MessageCatalogueInterface;
use Symfony\Component\Translation\Translator as BaseTranslator;
use Symfony\Component\Translation\TranslatorInterface; // Defined locally as BC layer

class Translator extends BaseTranslator implements TranslatorContract
class Translator extends BaseTranslator implements TranslatorContract, TranslatorInterface
{
const REFERENCE_REGEX = '/^=>\s*([a-z0-9_\-\.]+)$/i';

Expand Down
11 changes: 11 additions & 0 deletions src/TranslatorInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Symfony\Component\Translation;

/**
* @deprecated beta 16, remove beta 17.
* This is here to provide a graceful transition for classes typehinting the old interface.
* Temporarily, `Flarum\Locale\Translator` will implement this to avoid breaking that typehint.
* Before beta 17, this should be removed from autoload.
*/
interface TranslatorInterface{}