Skip to content

Commit 57d9d9f

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Update event_listeners_subscribers.rst Update event_listeners_subscribers.rst add missing link target for Ansistrano fixing ref removing some deploy strategies + adding & reordering
2 parents 9f8384d + 41f099b commit 57d9d9f

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

deployment.rst

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ Using Build Scripts and other Tools
7878
There are also tools to help ease the pain of deployment. Some of them have been
7979
specifically tailored to the requirements of Symfony.
8080

81-
`Capistrano`_ with `Symfony plugin`_
82-
`Capistrano`_ is a remote server automation and deployment tool written in Ruby.
83-
`Symfony plugin`_ is a plugin to ease Symfony related tasks, inspired by `Capifony`_
84-
(which works only with Capistrano 2).
81+
`EasyDeployBundle`_
82+
A Symfony bundle that adds easy deploy tools to your application.
8583

86-
`sf2debpkg`_
87-
Helps you build a native Debian package for your Symfony project.
84+
`Deployer`_
85+
This is another native PHP rewrite of Capistrano, with some ready recipes for
86+
Symfony.
87+
88+
`Ansistrano`_
89+
An Ansible role that allows you to configure a powerful deploy via YAML files.
8890

8991
`Magallanes`_
9092
This Capistrano-like deployment tool is built in PHP, and may be easier
@@ -94,13 +96,14 @@ specifically tailored to the requirements of Symfony.
9496
This Python-based library provides a basic suite of operations for executing
9597
local or remote shell commands and uploading/downloading files.
9698

97-
`Deployer`_
98-
This is another native PHP rewrite of Capistrano, with some ready recipes for
99-
Symfony.
99+
`Capistrano`_ with `Symfony plugin`_
100+
`Capistrano`_ is a remote server automation and deployment tool written in Ruby.
101+
`Symfony plugin`_ is a plugin to ease Symfony related tasks, inspired by `Capifony`_
102+
(which works only with Capistrano 2).
103+
104+
`sf2debpkg`_
105+
Helps you build a native Debian package for your Symfony project.
100106

101-
Bundles
102-
There are some `bundles that add deployment features`_ directly into your
103-
Symfony console.
104107

105108
Basic scripting
106109
You can of course use shell, `Ant`_ or any other build tool to script
@@ -212,10 +215,11 @@ other potential things like pushing assets to a CDN (see `Common Post-Deployment
212215
.. _`Capistrano`: http://capistranorb.com/
213216
.. _`sf2debpkg`: https://github.com/liip/sf2debpkg
214217
.. _`Fabric`: http://www.fabfile.org/
218+
.. _`Ansistrano`: https://ansistrano.com/
215219
.. _`Magallanes`: https://github.com/andres-montanez/Magallanes
216220
.. _`Ant`: http://blog.sznapka.pl/deploying-symfony2-applications-with-ant
217-
.. _`bundles that add deployment features`: https://github.com/search?utf8=✓&q=topic%3Asymfony-bundle+topic%3Adeploy&type=Repositories&ref=searchresults
218221
.. _`Memcached`: http://memcached.org/
219222
.. _`Redis`: http://redis.io/
220223
.. _`Symfony plugin`: https://github.com/capistrano/symfony/
221224
.. _`Deployer`: http://deployer.org/
225+
.. _`EasyDeployBundle`: https://github.com/EasyCorp/easy-deploy-bundle

doctrine/event_listeners_subscribers.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ a ``postPersist()`` method, which will be called when the event is dispatched::
131131
{
132132
public function postPersist(LifecycleEventArgs $args)
133133
{
134-
$object = $args->getObject();
134+
$entity = $args->getEntity();
135135

136136
// only act on some "Product" entity
137-
if (!$object instanceof Product) {
137+
if (!$entity instanceof Product) {
138138
return;
139139
}
140140

141-
$objectManager = $args->getObjectManager();
141+
$entityManager = $args->getEntityManager();
142142
// ... do something with the Product
143143
}
144144
}
@@ -195,7 +195,7 @@ interface and have an event method for each event it subscribes to::
195195

196196
public function index(LifecycleEventArgs $args)
197197
{
198-
$entity = $args->getObject();
198+
$entity = $args->getEntity();
199199

200200
// perhaps you only want to act on some "Product" entity
201201
if ($entity instanceof Product) {

0 commit comments

Comments
 (0)