-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4][CLI] boot com_content from console #36633
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
Conversation
|
Ok so webauthn looks fine. But where else is the user state being used - i don't particularly like having to implement that in the consoleapplication class |
|
the main point is we want the console app like 1st citizen ? i've shared the plugin console code already maybe i've made something wrong there ?? |
|
If you have |
|
I don't have the ability to test right now - I'll give it a test when I get home but @laoneo is right about the theory of how this should work |
|
as you can see i already have set $content = Factory::getApplication()->bootComponent('com_content')->getMVCFactory();
$model = $content->createModel('Article', 'Administrator',['ignore_request' => true]);
$result = $model->save($article); |
|
And where is the user state requested? |
|
even then the |
|
let's see what kind of thumb i'll collect cc: @SharkyKZ |
|
closed by mistake i suppose |
Create a console plugin that boot the com_content component and run it from terminal
ie. something like
Summary of Changes
added thegetUserState()method to the ConsoleApplication.phpTesting Instructions
php cli/joomla.php lorem:ipsumActual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
no error in console and article created
References
#36568, #36332, #35818
cc: @wilsonge @laoneo @anibalsanchez