Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions algolia-index-js-searchpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* Domain Path: /languages
*/

use ComponentLibrary\Init as ComponentLibraryInit;
use AlgoliaIndexJsSearchpage\Blade\Blade;
use AlgoliaIndexJsSearchpage\UI\Render;
use ComponentLibrary\Init as ComponentLibraryInit;
use WpService\Implementations\NativeWpService;
use WpUtilService\WpUtilService;

if (! defined('WPINC')) {
die;
if (!defined('WPINC')) {
die();
}

define('ALGOLIAINDEXJSSEARCHPAGE_PATH', plugin_dir_path(__FILE__));
Expand All @@ -42,6 +42,5 @@
$wpService = new NativeWpService();
$wpUtilService = new WpUtilService($wpService);


// Start application
new AlgoliaIndexJsSearchpage\App($wpUtilService->enqueue(__DIR__),new Render(new Blade(new ComponentLibraryInit([]))));
new AlgoliaIndexJsSearchpage\App($wpUtilService->enqueue(__DIR__), new Render(new Blade(new ComponentLibraryInit([]))));
28 changes: 21 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
"description": "https://github.com/helsingborg-stad/algolia-index-js-searchpage-addon",
"type": "wordpress-plugin",
"license": "MIT",
"minimum-stability": "dev",
"prefer-stable": true,
"authors": [
{
"name": "Sebastian Thulin",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"repositories": [
{
"type": "composer",
Expand All @@ -22,7 +23,13 @@
],
"require": {
"helsingborg-stad/wputilservice": "^0.2.44",
"helsingborg-stad/wpservice": "^2.0"
"helsingborg-stad/wpservice": "^2.0",
"helsingborg-stad/municipio": "^6.0.0",
"helsingborg-stad/component-library": "^4.0.0"
},
"require-dev": {
"phpunit/phpunit": "^11.5",
"carthage-software/mago": "^1.0.0-rc.1"
},
"scripts": {
"test": "vendor/bin/phpunit",
Expand All @@ -38,13 +45,20 @@
}
},
"version": "3.4.0",
"require-dev": {
"phpunit/phpunit": "^11.5",
"carthage-software/mago": "^1.0.0-rc.1"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"carthage-software/mago": true
}
},
"extra": {
"installer-paths": {
"vendor/{$vendor}/{$name}": [
"type:wordpress-muplugin",
"type:wordpress-theme",
"type:wordpress-plugin",
"type:acf-plugin"
]
}
}
}
}