Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Commit a77136d

Browse files
committed
minor #102 [WIP] moving SwiftmailerBundle docs to bundle repo (snoek09)
This PR was squashed before being merged into the 2.3-dev branch (closes #102). Discussion ---------- [WIP] moving SwiftmailerBundle docs to bundle repo Added installation chapter. Easy picks on bundle side from symfony/symfony-docs#4983 Commits ------- ff2ffda [WIP] moving SwiftmailerBundle docs to bundle repo
2 parents b5281c8 + ff2ffda commit a77136d

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

Resources/doc/index.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Installation
2+
============
3+
4+
Step 1: Download the Bundle
5+
---------------------------
6+
7+
Open a command console, enter your project directory and execute the
8+
following command to download the latest stable version of this bundle:
9+
10+
.. code-block:: bash
11+
12+
$ composer require symfony/swiftmailer-bundle "~2.3"
13+
14+
This command requires you to have Composer installed globally, as explained
15+
in the `installation chapter`_ of the Composer documentation.
16+
17+
Step 2: Enable the Bundle
18+
-------------------------
19+
20+
Then, enable the bundle by adding the following line in the ``app/AppKernel.php``
21+
file of your project:
22+
23+
.. code-block:: php
24+
25+
<?php
26+
// app/AppKernel.php
27+
28+
// ...
29+
class AppKernel extends Kernel
30+
{
31+
public function registerBundles()
32+
{
33+
$bundles = array(
34+
// ...
35+
36+
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
37+
);
38+
39+
// ...
40+
}
41+
42+
// ...
43+
}
44+
45+
.. _`installation chapter`: https://getcomposer.org/doc/00-intro.md

0 commit comments

Comments
 (0)