-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from Oksydan/falconize-migration
Falconize migration
- Loading branch information
Showing
21 changed files
with
1,708 additions
and
1,572 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
imports: | ||
- { resource: './database/image_slider.yml' } | ||
- { resource: './database/image_slider_lang.yml' } | ||
- { resource: './database/image_slider_shop.yml' } | ||
- { resource: './hooks/register.yml' } |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
database_tables: | ||
image_slider: | ||
columns: | ||
- name: id_slide | ||
type: integer | ||
length: 11 | ||
notnull: true | ||
autoincrement: true | ||
- name: active | ||
type: boolean | ||
notnull: true | ||
- name: position | ||
type: integer | ||
length: 11 | ||
notnull: true | ||
- name: display_from | ||
type: datetime | ||
notnull: false | ||
default: null | ||
- name: display_to | ||
type: datetime | ||
notnull: false | ||
default: null | ||
primary: | ||
- id_slide | ||
|
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
database_tables: | ||
image_slider_lang: | ||
columns: | ||
- name: id_slide | ||
type: integer | ||
length: 11 | ||
notnull: true | ||
- name: id_lang | ||
type: integer | ||
length: 11 | ||
notnull: true | ||
- name: title | ||
type: string | ||
length: 255 | ||
notnull: true | ||
- name: legend | ||
type: string | ||
length: 255 | ||
notnull: true | ||
- name: image | ||
type: string | ||
length: 255 | ||
notnull: true | ||
- name: image_mobile | ||
type: string | ||
length: 255 | ||
notnull: true | ||
- name: url | ||
type: string | ||
length: 255 | ||
notnull: true | ||
- name: description | ||
type: text | ||
notnull: true | ||
primary: | ||
- id_slide | ||
- id_lang | ||
|
||
constraint_keys: | ||
- name: is_imageslider_constraint_lang | ||
foreign_table: lang | ||
update: NO ACTION | ||
delete: CASCADE | ||
local_columns: | ||
- id_lang | ||
foreign_columns: | ||
- id_lang |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
database_tables: | ||
image_slider_shop: | ||
columns: | ||
- name: id_slide | ||
type: integer | ||
length: 11 | ||
notnull: true | ||
- name: id_shop | ||
type: integer | ||
length: 11 | ||
notnull: true | ||
primary: | ||
- id_slide | ||
- id_shop | ||
|
||
constraint_keys: | ||
- name: is_imageslider_constraint_shop | ||
foreign_table: shop | ||
update: NO ACTION | ||
delete: CASCADE | ||
local_columns: | ||
- id_shop | ||
foreign_columns: | ||
- id_shop |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
hooks: | ||
register: | ||
- name: displayHome | ||
- name: displayHeader |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Oksydan\IsImageslider\Falconize; | ||
|
||
use Doctrine\DBAL\Connection; | ||
use Oksydan\Falconize\FalconizeConfigurationInterface; | ||
use Oksydan\Falconize\PrestaShop\Module\PrestaShopModuleInterface; | ||
|
||
final class FalconizeConfiguration implements FalconizeConfigurationInterface | ||
{ | ||
protected PrestaShopModuleInterface $module; | ||
|
||
protected Connection $connection; | ||
|
||
protected string $databasePrefix; | ||
|
||
protected string $prestashopVersion; | ||
|
||
public function __construct( | ||
PrestaShopModuleInterface $module, | ||
Connection $connection, | ||
string $databasePrefix, | ||
string $prestashopVersion | ||
) { | ||
$this->module = $module; | ||
$this->connection = $connection; | ||
$this->databasePrefix = $databasePrefix; | ||
$this->prestashopVersion = $prestashopVersion; | ||
} | ||
|
||
public function getConnection(): Connection | ||
{ | ||
return $this->connection; | ||
} | ||
|
||
public function getModule(): PrestaShopModuleInterface | ||
{ | ||
return $this->module; | ||
} | ||
|
||
public function getConfigurationFile(): \SplFileInfo | ||
{ | ||
return new \SplFileInfo(__DIR__ . '/../../config/configuration.yml'); | ||
} | ||
|
||
public function getDatabasePrefix(): string | ||
{ | ||
return $this->databasePrefix; | ||
} | ||
|
||
public function getPrestashopVersion(): string | ||
{ | ||
return $this->prestashopVersion; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.