Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Constructor.
- *
- * @param IDependencyContainer $container
- */
- public function __construct(IDependencyContainer $container)
- {
- $this->container = $container;
- }
- /**
- * Returns ReadBean database connection instance.
- *
- * @return Connection
- */
- protected function getDatabase()
- {
- return $this->container->get('database')->get();
- }
- public function getProducts()
- {
- return $this->getDatabase()->getProducts();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement