Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored the service layer (again).
* Renamed `Configuration` to `StandardServiceContainer` * Created `ServiceContainerInterface` * Added proxy methods in `Propel` for the methods of`ServiceContainerInterface`, and used these methods in the documentation
- Loading branch information
1 parent
2715f38
commit 87f3431
Showing
85 changed files
with
1,026 additions
and
819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# List of Backwards Incompatible Changes | ||
|
||
## `Propel\Runtime\Propel` replaced by the `Propel\Runtime\Configuration` singleton. | ||
## `Propel\Runtime\Propel` methods renamed. | ||
|
||
The static methods from the `Propel` class have been moved to a singleton. Therefore, you must replace the following occurrences in your code: | ||
Some static methods from the `Propel` class have been renamed. Therefore, you must replace the following occurrences in your code: | ||
|
||
Replace... With... | ||
use Propel\Runtime\Propel use Propel\Runtime\Configuration | ||
Propel::getDatabase($name) Configuration::getInstance()->getDatabase($name) | ||
Propel::getDB($name) Configuration::getInstance()->getAdapter($name) | ||
Propel::getConnection($name, Propel::CONNECTION_READ) Configuration::getInstance()->getReadConnection($name) | ||
Propel::getConnection($name, Propel::CONNECTION_WRITE) Configuration::getInstance()->getWriteConnection($name) | ||
Propel::getDefaultDB() Configuration::getInstance()->getDefaultDatasource() | ||
Replace... With... | ||
Propel::CONNECTION_WRITE ServiceContainerInterface::CONNECTION_WRITE | ||
Propel::CONNECTION_READ ServiceContainerInterface::CONNECTION_READ | ||
Propel::getDB($name) Propel::getAdapter($name) | ||
Propel::getConnection($name, Propel::CONNECTION_READ) Propel::getReadConnection($name) | ||
Propel::getConnection($name, Propel::CONNECTION_WRITE) Propel::getWriteConnection($name) | ||
Propel::getDefaultDB() Propel::getDefaultDatasource() | ||
|
||
The generated model is automatically updated once you rebuild your model. | ||
The generated model is automatically updated once you rebuild your model. | ||
|
||
>**Tip**: Internally, `Propel::getAdapter()` proxies to `Propel::getServiceContainer()->getAdapter()`. The `Propel` class was refactored to keep only one static class and to be more extensible. It remains the easy entry point to all the necessary services provided by Propel. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.