Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick review of 'create framework' tutorial #5570

Merged
merged 3 commits into from
Dec 23, 2015

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Jul 28, 2015

No description provided.


# After
/hello/Fabien
instead of relying on a query string (like ``/hello/Fabien`` instead of
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if the new version is much better than the old one. The repeated instead of is confusing to me.

Copy link
Member

Choose a reason for hiding this comment

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

I tweaked this here to avoid the 2 instead of - sha: 3640b2a

@xabbuh
Copy link
Member

xabbuh commented Jul 28, 2015

You could also add the missing use statement for the HttpKernel component (see #5556 (comment)).

@wouterj
Copy link
Member Author

wouterj commented Jul 28, 2015

That was the original reason for doing this PR, but it turns out it isn't missing. It's included in a previous chapter or code example.

@xabbuh
Copy link
Member

xabbuh commented Jul 28, 2015

I see, but then we should imo add // ... placeholders where they are needed in that file.

@wouterj
Copy link
Member Author

wouterj commented Jul 28, 2015

Then we need to do it for 99% of the examples (as it's a tutorial, all code examples are an improvement of the previous shown example)

@xabbuh
Copy link
Member

xabbuh commented Jul 29, 2015

Hm, you're right. I think we can keep it as is then.

bootstrap="vendor/autoload.php"
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
Copy link
Member

Choose a reason for hiding this comment

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

I suggest using a newer version than 4.1, which is EOLed

@wouterj
Copy link
Member Author

wouterj commented Dec 19, 2015

PR updated and ready imo

@weaverryan
Copy link
Member

Thanks Wouter! The only thing I wonder about (and it was done this way before), is if we're going to use full namespaces for classes instead of use statements, why not prefix them with their opening \ so that they'll work even if someone copies some of this code into a namespaced file. What do you think about that?

@weaverryan weaverryan merged commit 3f8e61d into symfony:2.3 Dec 23, 2015
weaverryan added a commit that referenced this pull request Dec 23, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

Quick review of 'create framework' tutorial

Commits
-------

3f8e61d Apply suggestions from the comments
613d6bc Use underscores in file name
ece717e Quick review of 'create framework' tutorial
weaverryan added a commit that referenced this pull request Dec 23, 2015
@wouterj wouterj deleted the create_Fraemwork_fixes branch December 23, 2015 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants