Ivan

Results 59 comments of Ivan

The entity type is supposed to be generated for an existing module. Actually almost all generators work that way. We should probably add a validator for "Module machine name" question...

Entity Bundle Classes is still a pretty new thing so I doubt that best practices are already established on this. Personally I have no opinion about that. So I am...

I wonder if "Bundle" suffix was a good idea. In Drupal bundles are configuration entities. So "ArticleBundle" sounds like a bundle configuration entity for nodes.

I am aware about that approach. I think it was initially published in PreviousNext blog. https://www.previousnext.com.au/blog/safely-extending-drupal-8-plugin-classes-without-fear-of-constructor-changes There are a few things that stoped me to apply that technique in my...

> if plugin has container injection it is not supposed to be created directly Factory method is just a helper to facilitate instantiation. Otherwise the object contructor would be protected...

Here is the quote from the original article. > From time to time you may find you need to extend another module's plugins to add new functionality. But, we don't...

That being said, Fast Route was created as an experiment in efficient routing. In order, to make it useful in real application you'll have to create a non-trivial adapter or...

That's not an issue in PHP 8 anymore. ```php $cookie = new SetCookie('foo', 'bar', httpOnly: true); ```

> Tools would always be considered as dev-deps, so that running composer i --no-dev would not install them (tools for prod could instead be added as direct deps of the...