From bf6655a534a6775d30cafa67bd801276bda1d98d Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 13 Aug 2024 23:45:21 +0200 Subject: =?UTF-8?q?VERSION=200.2=20doctrine=20ORM=20et=20entit=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/doctrine/dbal/src/Configuration.php | 156 +++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 vendor/doctrine/dbal/src/Configuration.php (limited to 'vendor/doctrine/dbal/src/Configuration.php') diff --git a/vendor/doctrine/dbal/src/Configuration.php b/vendor/doctrine/dbal/src/Configuration.php new file mode 100644 index 0000000..9aa001d --- /dev/null +++ b/vendor/doctrine/dbal/src/Configuration.php @@ -0,0 +1,156 @@ +schemaAssetsFilter = static function (): bool { + return true; + }; + } + + /** + * Gets the cache driver implementation that is used for query result caching. + */ + public function getResultCache(): ?CacheItemPoolInterface + { + return $this->resultCache; + } + + /** + * Sets the cache driver implementation that is used for query result caching. + */ + public function setResultCache(CacheItemPoolInterface $cache): void + { + $this->resultCache = $cache; + } + + /** + * Sets the callable to use to filter schema assets. + */ + public function setSchemaAssetsFilter(callable $schemaAssetsFilter): void + { + $this->schemaAssetsFilter = $schemaAssetsFilter; + } + + /** + * Returns the callable to use to filter schema assets. + */ + public function getSchemaAssetsFilter(): callable + { + return $this->schemaAssetsFilter; + } + + /** + * Sets the default auto-commit mode for connections. + * + * If a connection is in auto-commit mode, then all its SQL statements will be executed and committed as individual + * transactions. Otherwise, its SQL statements are grouped into transactions that are terminated by a call to either + * the method commit or the method rollback. By default, new connections are in auto-commit mode. + * + * @see getAutoCommit + * + * @param bool $autoCommit True to enable auto-commit mode; false to disable it + */ + public function setAutoCommit(bool $autoCommit): void + { + $this->autoCommit = $autoCommit; + } + + /** + * Returns the default auto-commit mode for connections. + * + * @see setAutoCommit + * + * @return bool True if auto-commit mode is enabled by default for connections, false otherwise. + */ + public function getAutoCommit(): bool + { + return $this->autoCommit; + } + + /** + * @param Middleware[] $middlewares + * + * @return $this + */ + public function setMiddlewares(array $middlewares): self + { + $this->middlewares = $middlewares; + + return $this; + } + + /** @return Middleware[] */ + public function getMiddlewares(): array + { + return $this->middlewares; + } + + public function getSchemaManagerFactory(): ?SchemaManagerFactory + { + return $this->schemaManagerFactory; + } + + /** @return $this */ + public function setSchemaManagerFactory(SchemaManagerFactory $schemaManagerFactory): self + { + $this->schemaManagerFactory = $schemaManagerFactory; + + return $this; + } + + /** @return true */ + public function getDisableTypeComments(): bool + { + return true; + } + + /** + * @param true $disableTypeComments + * + * @return $this + */ + public function setDisableTypeComments(bool $disableTypeComments): self + { + if (! $disableTypeComments) { + throw new InvalidArgumentException('Column comments cannot be enabled anymore.'); + } + + return $this; + } +} -- cgit v1.2.3