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

Refactor the whole application kernel #396

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Refactor the whole application kernel #396

merged 1 commit into from
Apr 9, 2024

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Apr 7, 2024

@lyrixx lyrixx changed the title Refactor the whole application kernel [WIP] Refactor the whole application kernel Apr 7, 2024
@lyrixx lyrixx force-pushed the kernel branch 2 times, most recently from 3239e86 to 8952897 Compare April 7, 2024 17:57
Copy link
Member

@pyrech pyrech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refacto 💛

src/Import/Importer.php Outdated Show resolved Hide resolved
src/Import/Importer.php Outdated Show resolved Hide resolved
@lyrixx lyrixx force-pushed the kernel branch 2 times, most recently from 7124437 to 2b6c0ba Compare April 8, 2024 19:49
@lyrixx lyrixx changed the title [WIP] Refactor the whole application kernel Refactor the whole application kernel Apr 8, 2024
Copy link
Member Author

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, the PR is now ready for review

@@ -78,6 +79,7 @@ private static function configureDebug(): ErrorHandler

AbstractCloner::$defaultCasters[self::class] = ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'];
AbstractCloner::$defaultCasters[AfterApplicationInitializationEvent::class] = ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'];
AbstractCloner::$defaultCasters[DescriptorsCollection::class] = ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better display when running castor -vvv

src/Import/Importer.php Outdated Show resolved Hide resolved
@welcoMattic
Copy link
Contributor

welcoMattic commented Apr 9, 2024

Allow remote import in remote import

Is there any way to forbid it? I think it could lead to security issues (someone publish a castor random task that sounds useful, but this task import another one (repeat N times) and the last one contain malicious code.

@lyrixx
Copy link
Member Author

lyrixx commented Apr 9, 2024

Is there any way to forbid it? I think it could lead to security issues (someone publish a castor random task that sounds useful, but this task import another one (repeat N times) and the last one contain malicious code.

Indeed, but it's already the case with a "simple" import. I mean, this PR does not allow more security issue than the one already present

@lyrixx lyrixx merged commit 7da8e06 into main Apr 9, 2024
9 checks passed
@lyrixx lyrixx deleted the kernel branch April 9, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue when using import from a git repository
3 participants