sonata-project/exporter

Add BC way for namespace changes

Closed this issue · 11 comments

The namespace will change with the next major release. We should find a way to inform the user, that the namespace will change.

Maybe we could use something like EasyAdmin is doing with the legacy folder

Or maybe use class_alias?

Not sure it can work with a deprecation though...

Afaik, EasyAdmin is using class_alias too

Maybe some kind of hack for PHP7?

From @xabbuh:

That's for autocompletion in IDEs.
So that users can still use autocompletion with the legacy class name.

I will do something minimal that time, with no deprecation.

Not sure, if we still need this. We already have a stable release with the new namespace.

yes but it is hard to create code that supports both versions, and we need to do so in core, admin, doctrine-orm, and more

I will do something minimal that time, with no deprecation.

I ended up adding them anyway, it wasn't too hard.

stale commented

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.