Skip to content

Commit

Permalink
Fix compilation errors - pull request #24
Browse files Browse the repository at this point in the history
Fixes compilation errors when you run bin/magento setup:di:compile
  • Loading branch information
sinukaarel authored Oct 11, 2019
2 parents d61cd71 + 5baed35 commit 611d2eb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 2 additions & 6 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper

public function __construct(
Context $context,
\Psr\Log\LoggerInterface $logger,
Curl $curl
) {
parent::__construct(
$context
);

$this->logger = $logger;
$this->logger = $context->getLogger();
$this->curl = $curl;
parent::__construct($context);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Model/Cron/Customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
StoreManagerInterface $storeManager
) {
$this->resourceConnection = $resourceConnection;
$this->connection = $this->resourceConnection->getConnection($this->resourceConnection::DEFAULT_CONNECTION);
$this->connection = $this->resourceConnection->getConnection(ResourceConnection::DEFAULT_CONNECTION);
$this->customerRepository = $customerRepositoryFactory->create();
$this->helperData = $helperData;
$this->storeManager = $storeManager;
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ Usually a good place to start would be to check Magento CRON's Schedule Ahead fo

## Changelog

### 0.9.2

#### Bugfixes

- Fix compilation issues

### 0.9.1

#### Functionality updates
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "smaily/smailyformagento",
"description": "Magento 2 Smaily extension",
"version": "0.9.1",
"version": "0.9.2",
"type": "magento2-module",
"license": "GPL-3.0",
"authors": [
Expand Down

0 comments on commit 611d2eb

Please sign in to comment.