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

[3.0][Config] Remove ResourceInterface::getResource() which was deprecated in 2.8#15929

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

Closed
mpdude wants to merge4 commits intosymfony:masterfromwebfactory:remove_deprecations
Closed

[3.0][Config] Remove ResourceInterface::getResource() which was deprecated in 2.8#15929

mpdude wants to merge4 commits intosymfony:masterfromwebfactory:remove_deprecations

Conversation

mpdude
Copy link
Contributor

QA
Bug fix?no
New feature?no
BC breaks?yes
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

Deprecated in#15719.

@stof
Copy link
Member

shouldn't it also be removed from implementations ? Or are the existing resources needing it ?

@mpdude
Copy link
ContributorAuthor

Some tests rely on it and I don't know if users do.

It only does not make sense at theinterface level because different implementations returned different types of values.

@Tobion
Copy link
Contributor

When the implementations are kept, the documentation would need to be updated. They useinheritdoc at the moment which doesn't work anymore.

Status: Needs Work

@Tobion
Copy link
Contributor

Several resources used for tests also implement getResource for no reason anymore.

@stof
Copy link
Member

this branch needs to be rebased too, as it conflicts with the current state

@mpdude
Copy link
ContributorAuthor

Rebased, cleaned up and fixed.

@@ -44,7 +44,7 @@ public function __toString()
}

/**
*{@inheritdoc}
*@return string The file path to the resource
Copy link
Contributor

Choose a reason for hiding this comment

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

currently it can also returnfalse when realpath returns an error. So I propose to throw an exception in the constructor in this case which is ok in 3.0 i guess.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Hm, maybe. But that has nothing to do with this PR, or? Shouldn't that be a differnt PR possibly with a test?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fine with a different PR. But then the phpdoc is wrong at the moment.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Fixed

@Tobion
Copy link
Contributor

Why does DirectoryResource not callrealpath but FileResource does, seems like a bug as well.

@mpdude
Copy link
ContributorAuthor

I don't know whyDirectoryResource does not do that, and I also don't know what users expect from it. What Ido know is that forConfigCache we don't care :-).

@Tobion
Copy link
Contributor

👍

Status: Reviewed

@Tobion
Copy link
Contributor

Created#15946 for the remainder

@fabpot
Copy link
Member

Thank you@mpdude.

fabpot added a commit that referenced this pull requestSep 28, 2015
…which was deprecated in 2.8 (mpdude)This PR was squashed before being merged into the 3.0-dev branch (closes#15929).Discussion----------[3.0][Config] Remove ResourceInterface::getResource() which was deprecated in 2.8| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | yes| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Deprecated in#15719.Commits-------7cef180 [3.0][Config] Remove ResourceInterface::getResource() which was deprecated in 2.8
@fabpotfabpot closed thisSep 28, 2015
@mpdudempdude deleted the remove_deprecations branchSeptember 28, 2015 21:05
@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.

5 participants
@mpdude@stof@Tobion@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp