@@ 52-64 (lines=13) @@ | ||
49 | * @param string $prefix Prefix for the table name in DB |
|
50 | * @param ZohoChangeListener[] $listeners The list of listeners called when a record is inserted or updated. |
|
51 | */ |
|
52 | public function __construct(Connection $connection, ZohoUserService $zohoUserService, $prefix = 'zoho_', array $listeners = [], LoggerInterface $logger = null) |
|
53 | { |
|
54 | $this->connection = $connection; |
|
55 | $this->prefix = $prefix; |
|
56 | $this->listeners = $listeners; |
|
57 | if ($logger === null) { |
|
58 | $this->logger = new NullLogger(); |
|
59 | } else { |
|
60 | $this->logger = $logger; |
|
61 | } |
|
62 | $this->localChangesTracker = new LocalChangesTracker($connection, $this->logger); |
|
63 | $this->zohoUserService = $zohoUserService; |
|
64 | } |
|
65 | ||
66 | /** |
|
67 | * @throws \Doctrine\DBAL\DBALException |
@@ 49-61 (lines=13) @@ | ||
46 | * @param Connection $connection |
|
47 | * @param string $prefix Prefix for the table name in DB |
|
48 | */ |
|
49 | public function __construct(Connection $connection, ZohoUserService $zohoUserService, $prefix = 'zoho_', LoggerInterface $logger = null) |
|
50 | { |
|
51 | $this->connection = $connection; |
|
52 | $this->prefix = $prefix; |
|
53 | if ($logger === null) { |
|
54 | $this->logger = new NullLogger(); |
|
55 | } else { |
|
56 | $this->logger = $logger; |
|
57 | } |
|
58 | $this->localChangesTracker = new LocalChangesTracker($connection, $this->logger); |
|
59 | $this->zohoUserService = $zohoUserService; |
|
60 | $this->trackingTablesDone = false; |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * @param LoggerInterface $logger |