1 | <?php |
||
7 | class Doctrine1PersistenceConfigurator extends PersistenceConfigurator |
||
8 | { |
||
9 | /** |
||
10 | * A DSN is essential when the bus attempts to automatically recover from disconnects. |
||
11 | * The DNS formats are as described in the Doctrine documentation. |
||
12 | * |
||
13 | * @see http://doctrine.readthedocs.org/en/latest/en/manual/introduction-to-connections.html |
||
14 | * |
||
15 | * @param string $dsn |
||
16 | * |
||
17 | * @return Doctrine1PersistenceConfigurator |
||
18 | */ |
||
19 | 1 | public function useDSN($dsn) |
|
24 | |||
25 | /** |
||
26 | * You can also specify a Doctrine_Manager instance. |
||
27 | * If not specified, one will be obtained using Doctrine_Manager::getInstance() |
||
28 | * |
||
29 | * @param \Doctrine_Manager $manager |
||
30 | * |
||
31 | * @return Doctrine1PersistenceConfigurator |
||
32 | */ |
||
33 | 1 | public function useManager(\Doctrine_Manager $manager) |
|
38 | |||
39 | /** |
||
40 | * If you're using multiple connections in your application, it's imperative that you specify |
||
41 | * which connection name should be used. Not doing so can render your application useless when |
||
42 | * the bus attempts to automatically recover from disconnects. |
||
43 | * |
||
44 | * @param string $name |
||
45 | * |
||
46 | * @return Doctrine1PersistenceConfigurator |
||
47 | */ |
||
48 | 1 | public function useConnectionName($name) |
|
53 | |||
54 | /** |
||
55 | * Instead of passing the connection name, dsn and manager one by one, you can do it in a single step |
||
56 | * by passing a LogicalConnection which is a wrapper to the 3 mentioned before. |
||
57 | * |
||
58 | * @param LogicalConnection $connection |
||
59 | * |
||
60 | * @return Doctrine1PersistenceConfigurator |
||
61 | */ |
||
62 | public function useLogicalConnection(LogicalConnection $connection) |
||
67 | |||
68 | /** |
||
69 | * @param string $tableName |
||
70 | * |
||
71 | * @return Doctrine1PersistenceConfigurator |
||
72 | */ |
||
73 | 1 | public function useOutboxMessagesTableName($tableName) |
|
78 | |||
79 | /** |
||
80 | * @param string $tableName |
||
81 | * |
||
82 | * @return Doctrine1PersistenceConfigurator |
||
83 | */ |
||
84 | 1 | public function useOutboxEndpointsTableName($tableName) |
|
89 | } |
||
90 |