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

Yii components split #13065

Closed
Deele opened this issue Nov 23, 2016 · 1 comment
Closed

Yii components split #13065

Deele opened this issue Nov 23, 2016 · 1 comment

Comments

@Deele
Copy link
Contributor

Deele commented Nov 23, 2016

Backstory: I am slowly working towards finishing my first component for Yii (#12862) that is a step towards separating controller from code, that should be sitting in model (referencing MVC pattern, not Model class in Yii) and then I stumbled upon project in this repository and got curious. I haven't found any issues regarding this, so I'm starting this issue to question idea behind such move.

Yii components split
Attempt to split Yii components into framework-independent universal libraries

What is meant by this initiative/project? Does it mean just that there will be less code in yii2 repo, and more packages in vendor?

If so, what remains in core and what will be taken outside then? In terms of basic parts parts of code, like Object, Configurable, Component, that are used everywhere, where do they remain, in core or separate package? Who will decide what really is framework, and what is just a component ?

If there would be some sort of description what such splitting initiative would look like, new components (like my Migrator ) could be created with that idea in mind and created, using words of mentioned project, "into framework-independent universal libraries".

How do we contribute to that project page, what are guidelines, what are rules, who will decide on the level of separation? Are we looking for compatibility with low level Symfony components/bundles?

Lets talk about this.

@samdark
Copy link
Member

samdark commented Nov 23, 2016

What is meant by this initiative/project? Does it mean just that there will be less code in yii2 repo, and more packages in vendor?

Yes.

If so, what remains in core and what will be taken outside then? In terms of basic parts parts of code, like Object, Configurable, Component, that are used everywhere, where do they remain, in core or separate package? Who will decide what really is framework, and what is just a component ?

Core stuff remains in the core. Core team will decide what is what.

If there would be some sort of description what such splitting initiative would look like, new components (like my Migrator ) could be created with that idea in mind and created, using words of mentioned project, "into framework-independent universal libraries".

We aren't really going to create "framework-independent universal libraries" unless it makes total sense to free code of framework dependency overall. Some degree of dependency on the core is beneficial to both reusability and code clarity.

Migrator still belongs to the core and could be extracted later. Since it depends on schema and loses much if not, it makes sense to either keep it in the core or extract it to core-dependent package.

See #8452. That's where we want to start.

I'm closing the issue since it's kinda meta-one but feel free to ask more questions.

@samdark samdark closed this as completed Nov 23, 2016
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

No branches or pull requests

2 participants