Skip to content

Conversation

@smhg
Copy link
Contributor

@smhg smhg commented Jan 9, 2024

@falkenhawk this is the last component (at least for now). Thanks!

"ext-dom": "*",
"ext-reflection": "*",
"ext-simplexml": "*",
"zf1s/zend-controller": "^1.15.3",
Copy link
Member

Choose a reason for hiding this comment

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

could we keep zend-controller in suggest, please? It's required only by Zend_Rest_Controller and Zend_Rest_Route. So it's optional when only client/server classes are used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was indeed a close call. I myself only use Zend_Rest_Controller and Zend_Rest_Route (and not the client/server classes). Both uses are indeed completely separate. suggest sounds better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@falkenhawk Can all other deps also be moved to suggest? With the exception of Zend_Exception. That makes sense when using only the MVC classes (Zend_Rest_Controller and Zend_Rest_Route).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@falkenhawk I'm not sure what you meant with the eyes emoji :) I won't move the others in this PR for now.

}
},
"suggest": {
"zf1s/zend-config": "Used in special situations or with special adapters"
Copy link
Member

Choose a reason for hiding this comment

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

Zend_Config is not used at all - can be removed from suggest. Type hinting an instance of Zend_Config in Zend_Rest_Route::getInstance() does not make the class/package itself required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just so I understand: the type hinting, if not installed, won't lead to an error?
Or you mean type hinting-only use is not enough to make it required?

Copy link
Member

Choose a reason for hiding this comment

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

Both are correct

@falkenhawk falkenhawk changed the title update zend-rest deps according to usage [zend-rest] update zend-rest deps according to usage Feb 25, 2024
@smhg smhg force-pushed the fix-zend-rest-deps branch from b6732a5 to 69706d6 Compare April 11, 2025 09:05
@smhg smhg requested a review from falkenhawk April 11, 2025 09:14
@smhg
Copy link
Contributor Author

smhg commented Apr 11, 2025

@falkenhawk I think this should be fine to merge now too?

Copy link
Member

@falkenhawk falkenhawk left a comment

Choose a reason for hiding this comment

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

Thank you @smhg !

@falkenhawk falkenhawk merged commit 0540073 into zf1s:master Apr 13, 2025
13 checks passed
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.

2 participants