Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DomCrawler] Deprecate methods inherited from SplObjectStorage#15907

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.8fromstof:deprecate_object_storage
Sep 27, 2015

Conversation

@stof
Copy link
Member

QA
Bug fix?no
New feature?no
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed ticketshalf of#15849
LicenseMIT
Doc PRn/a

There is no documentation change to be done for it: we don't document the fact that DomCrawler extends SplObjectStorage (this is an implementation detail which leaked because of using inheritance rather than composition).

@stof
Copy link
MemberAuthor

All inherited methods are deprecated, except a few ones:

  • Iterator methods, because the iteration is not deprecated (even though I will probably useIteratorAggregate to implement it when removing the SplObjectStorage inheritance in 3.0)
  • count (we still want to implementCountable)
  • Serializable methods, which are totally broken and so I submittedForbid serializing a Crawler #15906 to 2.3 instead

Copy link
Member

Choose a reason for hiding this comment

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

We are usingThe __METHOD__ method in triggers. Should be changed everywhere here.

@xabbuh
Copy link
Member

Should we now implement the desired interfaces explicitly so that we are aware of the fact that we need to ship custom implementations once we break the inheritance?

Status: Needs work

@stof
Copy link
MemberAuthor

@xabbuh the only interfaces we need at Traversable and Countable. And we will notice it when rewriting the implementation, because most tests of the crawler are relying on them anyway.

@stofstofforce-pushed thedeprecate_object_storage branch fromc082ddc to997c650CompareSeptember 27, 2015 13:06
@stof
Copy link
MemberAuthor

Updated.

Status: needs review

@fabpot
Copy link
Member

Thank you@stof.

@fabpotfabpot merged commit997c650 intosymfony:2.8Sep 27, 2015
fabpot added a commit that referenced this pull requestSep 27, 2015
…tStorage (stof)This PR was merged into the 2.8 branch.Discussion----------[DomCrawler] Deprecate methods inherited from SplObjectStorage| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | half of#15849| License       | MIT| Doc PR        | n/aThere is no documentation change to be done for it: we don't document the fact that DomCrawler extends SplObjectStorage (this is an implementation detail which leaked because of using inheritance rather than composition).Commits-------997c650 Deprecate methods inherited from SplObjectStorage
@stofstof deleted the deprecate_object_storage branchSeptember 27, 2015 13:30
xabbuh added a commit to symfony/symfony-docs that referenced this pull requestOct 19, 2015
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes#5796).Discussion----------Fix for#5783| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | 2.8| Fixed tickets |#5783I can confirm, that this is the only place where the `SplStorageObject` and its methods which were marked as deprecated insymfony/symfony#15907 are referenced.Commits-------065d28c Fix for#5783
@fabpotfabpot mentioned this pull requestNov 16, 2015
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@stof@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp