Skip to content

Conversation

@dbu
Copy link
Contributor

@dbu dbu commented Dec 5, 2014

Moving most of FriendsOfSymfony/FOSHttpCacheBundle#177 to the library.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I keep this kernel very minimal. The component kernel does not define the getOptions method anyways. And i guess people using the component directly are used to hand-craft their things.

Copy link
Member

Choose a reason for hiding this comment

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

I would call it EventDispatchingHttpCache rather than just HttpCache, to make the name explicit about the difference to the parent class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should we do the same in the bundle?

@dbu
Copy link
Contributor Author

dbu commented Dec 5, 2014

okay, tests are green again.

last round of feedback @lolautruche @ddeboer ?

@dbu dbu force-pushed the symfony-cache-support branch from 131849d to 4711ba6 Compare December 5, 2014 12:49
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong order.
Should be the following (opposite of array_merge())

$this->options = $options + array(
    'default' => 'value'
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ouch, good catch

@dbu dbu force-pushed the symfony-cache-support branch 2 times, most recently from bf07d2d to 75ce5f4 Compare December 5, 2014 15:01
Copy link
Member

Choose a reason for hiding this comment

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

this is the wrong order too

Copy link
Member

Choose a reason for hiding this comment

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

btw, why merging the default yourselves ? you should test passing incomplete options

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the order here is correct. i want some test headers.

the reason to merge is so that i can do the right headers in the tests below. i guess i have to split the two.

@dbu dbu force-pushed the symfony-cache-support branch from 75ce5f4 to 8cf14a4 Compare December 5, 2014 15:19
@ddeboer
Copy link
Member

ddeboer commented Dec 7, 2014

Looks great to me. However, docs are still missing. @dbu Can you add doc changes to this PR? We probably need:

@dbu dbu force-pushed the symfony-cache-support branch 2 times, most recently from 7a18787 to d28f1a9 Compare December 11, 2014 13:48
@dbu
Copy link
Contributor Author

dbu commented Dec 11, 2014

alright, i just added a bunch of documentation.

@dbu
Copy link
Contributor Author

dbu commented Dec 13, 2014

fixed the doc to not have a duplicated reference label.

fine like this? anything we need to do or can we merge?

README.md Outdated
Copy link
Member

Choose a reason for hiding this comment

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

‘component’ is a bit misleading, as HttpCache is no Symfony Component. Better: ‘Symfony Reverse Proxy’.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm. "Symfony Reverse Proxy from the http-kernel component"? i want to point out that its about a component ,and not the symfony framework.

@ddeboer
Copy link
Member

ddeboer commented Dec 13, 2014

Thanks @dbu and @lolautruche. Added comments about some minor details. Let’s fix them and merge this! 😄

@dbu dbu force-pushed the symfony-cache-support branch from 6e14f3b to ac50037 Compare December 13, 2014 17:49
@dbu
Copy link
Contributor Author

dbu commented Dec 13, 2014

thanks, updated

ddeboer added a commit that referenced this pull request Dec 14, 2014
Adding support for user context for symfony HttpCache
@ddeboer ddeboer merged commit 54da9c0 into master Dec 14, 2014
@ddeboer ddeboer deleted the symfony-cache-support branch December 14, 2014 21:07
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.

6 participants