Skip to content

Commit

Permalink
Update InstallData.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkdigitalltd authored Aug 10, 2017
1 parent 88e0873 commit 4ceb20f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Setup/InstallData.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ class InstallData implements InstallDataInterface
* @param StoreManagerInterface $storeManager
*/

public function __construct(ConfigBasedIntegrationManager $integrationManager, File $io, StoreManagerInterface $storeManager)
{
public function __construct(
ConfigBasedIntegrationManager $integrationManager,
File $io,
StoreManagerInterface $storeManager
) {
$this->integrationManager = $integrationManager;
$this->io = $io;
$this->storeManager = $storeManager;
Expand All @@ -41,7 +44,7 @@ public function __construct(ConfigBasedIntegrationManager $integrationManager, F
* {@inheritdoc}
*/

public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
public function install()
{
$this->integrationManager->processIntegrationConfig(['Tkdigital_Buzzsubs']);

Expand Down Expand Up @@ -76,7 +79,8 @@ private function strSlug($title, $separator = '-')
*/
public function getContent($scriptName)
{
$content = '<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
$content = '<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<script src="https://mage.buzzsubs.com/buzz/vendor/app.js" src_type="url" defer="defer"/>
<script src="https://mage.buzzsubs.com/buzz/scripts/buzz-' . $scriptName . '-subs.js" src_type="url" defer="defer"/>
Expand Down

0 comments on commit 4ceb20f

Please sign in to comment.