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

doctrine:generate:entities destination folder error on Windows#42

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
schniper wants to merge1 commit intosymfony:masterfromschniper:master
Closed

Conversation

@schniper
Copy link
Contributor

Right now, running the command from the root of a sandbox, would generate entities in /src/Application/MyBundle/Application/MyBundle/Entity.
The cause is a substring replace on string paths using distinct separators.

… substraction of slash delimited $path doesn't work.
@jwage
Copy link
Contributor

This looks good. Fabien, it can be merged!

@fabpot
Copy link
Member

I have done the change directly into the Bundle class.

@schniper
Copy link
ContributorAuthor

The change has not appeared in the last few updates. Have you forgotten about it or it's on its way?

@fabpot
Copy link
Member

fabpot@1148519

jderusse pushed a commit to jderusse/symfony that referenced this pull requestMar 30, 2020
This PR was merged into the master branch.Discussion----------Fixed wrong validator script name in READMECommits-------5860e93 Fixed wrong validator script name in README
fabpot added a commit that referenced this pull requestSep 19, 2020
This PR was merged into the 5.2-dev branch.Discussion----------[VarDumper] Support for ReflectionAttribute| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Tickets       | N/A| License       | MIT| Doc PR        | not neededVarDumper currently does not understand that certain reflection objects might have attributes attached to it. Dumping a `ReflectionAttribute` just yields `ReflectionAttribute {#4711}` which is not really helpful. This PR attempts to fix this.```ReflectionAttribute {#4711  name: "App\MyAttribute"  arguments: array:2 [    0 => "one"    "extra" => "hello"  ]}```While working on this, I noticed that class constants (which can be reflected on since PHP 7.1) are just dumped as plain values, so I've also added a caster for `ReflectionClasConstant` as bonus.The full output for the `LotsOfAttributes` fixture class that is included with is PR looks like this:<details>```^ ReflectionClass {#7  +name: "Symfony\Component\VarDumper\Tests\Fixtures\LotsOfAttributes"  modifiers: "final"  implements: []  constants: array:1 [    0 => ReflectionClassConstant {#20      +name: "SOME_CONSTANT"      +class: "Symfony\Component\VarDumper\Tests\Fixtures\LotsOfAttributes"      modifiers: "public"      value: "some value"      attributes: array:2 [        0 => ReflectionAttribute {#33          name: "Symfony\Component\VarDumper\Tests\Fixtures\RepeatableAttribute"          arguments: array:1 [            0 => "one"          ]        }        1 => ReflectionAttribute {#34          name: "Symfony\Component\VarDumper\Tests\Fixtures\RepeatableAttribute"          arguments: array:1 [            0 => "two"          ]        }      ]    }  ]  properties: array:1 [    "someProperty" => ReflectionProperty {#19      +name: "someProperty"      +class: "Symfony\Component\VarDumper\Tests\Fixtures\LotsOfAttributes"      modifiers: "private"      attributes: array:1 [        0 => ReflectionAttribute {#30          name: "Symfony\Component\VarDumper\Tests\Fixtures\MyAttribute"          arguments: array:2 [            0 => "one"            "extra" => "hello"          ]        }      ]    }  ]  methods: array:1 [    "someMethod" => ReflectionMethod {#21      +name: "someMethod"      +class: "Symfony\Component\VarDumper\Tests\Fixtures\LotsOfAttributes"      returnType: "void"      parameters: {        $someParameter: ReflectionParameter {#28          +name: "someParameter"          position: 0          attributes: array:1 [            0 => ReflectionAttribute {#42              name: "Symfony\Component\VarDumper\Tests\Fixtures\MyAttribute"              arguments: array:1 [                0 => "three"              ]            }          ]          typeHint: "string"        }      }      attributes: array:1 [        0 => ReflectionAttribute {#27          name: "Symfony\Component\VarDumper\Tests\Fixtures\MyAttribute"          arguments: array:1 [            0 => "two"          ]        }      ]      modifiers: "public"    }  ]  attributes: array:1 [    0 => ReflectionAttribute {#22      name: "Symfony\Component\VarDumper\Tests\Fixtures\MyAttribute"      arguments: []    }  ]  extra: {    file: "./src/Symfony/Component/VarDumper/Tests/Fixtures/LotsOfAttributes.php"    line: "15 to 28"    isUserDefined: true  }}```</details>Commits-------34dbf01 [VarDumper] Support for ReflectionAttribute.
chalasr pushed a commit to chalasr/symfony that referenced this pull requestSep 24, 2020
…ects (symfony#42)* Add a blocker to avoid using HttpFoundation request and response objects* Stop setting request & response httpfoundation object
This pull request wasclosed.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@schniper@jwage@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp