Browse code

Initial commit

Benjamin Roth authored on30/01/2023 20:47:41
Showing8 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+# EditorConfig is awesome: http://EditorConfig.org
2
+
3
+# top-most EditorConfig file
4
+root = true
5
+
6
+# Unix-style newlines with a newline ending every file
7
+[*]
8
+end_of_line = lf
9
+insert_final_newline = true
10
+trim_trailing_whitespace = true
11
+
12
+[*.{php,twig,yml}]
13
+indent_style = space
14
+indent_size = 4
15
+
16
+[*.{html5,svg,min.css,min.js}]
17
+insert_final_newline = false
0 18
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+# Composer
2
+/composer.lock
3
+/composer.phar
4
+/vendor/
5
+
6
+# PhpUnit
7
+/.phpunit.result.cache
8
+/phpunit.xml
9
+
10
+# Tools
11
+/tools/*/vendor
12
+
13
+# IDE
14
+/.idea/
0 15
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+# Job ads listing bundle for Alox utilizing Zvoove API
2
+
3
+Provides listing modules for job ads retrieved over the zvoove API.
4
+
5
+This module is co-developed and provided by [Kommunikation vonRotenberg](https://www.vonrotenberg.de.de) and [Vossmedien](https://www.vossmedien.de).
6
+
7
+**Authors:**
8
+Benjamin Roth [benjamin@esales-media.de]
9
+Christian Voss [christian@vossmedien.de]
10
+
11
+
12
+## System requirements
13
+- Contao CMS >= 4.13.x
14
+
15
+
16
+## Installation
17
+Install the bundle via Composer:
18
+
19
+```
20
+composer require vossmedien/alox-bundle
21
+```
22
+
23
+
24
+## License
25
+Commercial license
0 26
new file mode 100644
... ...
@@ -0,0 +1,38 @@
1
+{
2
+  "name":"vossmedien/alox-bundle",
3
+  "description":"Job ads listing bundle for Alox utilizing Zvoove API",
4
+  "keywords":["contao", "alox", "zvoove","api"],
5
+  "type":"contao-bundle",
6
+  "license":"commercial",
7
+  "authors":[
8
+    {
9
+      "name": "Benjamin Roth",
10
+      "homepage": "https://www.vonrotenberg.de"
11
+    },
12
+    {
13
+      "name": "Christian Voss",
14
+      "homepage": "https://www.vossmedien.de"
15
+    }
16
+  ],
17
+  "require":{
18
+    "php": "^7.4 || ^8.0",
19
+    "contao/core-bundle": "^4.13"
20
+  },
21
+  "conflict": {
22
+    "contao/manager-plugin": "<2.0 || >=3.0"
23
+  },
24
+  "autoload": {
25
+    "psr-4": {
26
+      "vossmedien\\AloxBundle\\": "src/"
27
+    }
28
+  },
29
+  "config": {
30
+    "allow-plugins": {
31
+      "contao-components/installer": true,
32
+      "contao/manager-plugin": true
33
+    }
34
+  },
35
+  "extra":{
36
+    "contao-manager-plugin": "vossmedien\\AloxBundle\\ContaoManager\\Plugin"
37
+  }
38
+}
0 39
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+services:
2
+    _defaults:
3
+        autowire: true
4
+        autoconfigure: true
5
+        public: false
6
+
7
+    vossmedien\AloxBundle\:
8
+        resource: ../src
9
+        exclude: ../src/{VossmedienAloxBundle.php,ContaoManager,Entity,Migrations,Model,Resources,Tests,Widget}
10
+
0 11
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/*
6
+ * This file is part of formilicious bundle for Contao.
7
+ *
8
+ * (c) Benjamin Roth
9
+ *
10
+ * @license LGPL-3.0-or-later
11
+ */
12
+
13
+namespace vossmedien\AloxBundle\ContaoManager;
14
+
15
+use Contao\CoreBundle\ContaoCoreBundle;
16
+use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
17
+use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
18
+use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
19
+use vossmedien\AloxBundle\VossmedienAloxBundle;
20
+
21
+class Plugin implements BundlePluginInterface
22
+{
23
+    public function getBundles(ParserInterface $parser): array
24
+    {
25
+        return [
26
+            BundleConfig::create(VossmedienAloxBundle::class)
27
+                ->setLoadAfter([ContaoCoreBundle::class]),
28
+        ];
29
+    }
30
+}
0 31
new file mode 100644
... ...
@@ -0,0 +1,27 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/*
6
+ * This file is part of formilicious bundle for Contao.
7
+ *
8
+ * (c) Benjamin Roth
9
+ *
10
+ * @license LGPL-3.0-or-later
11
+ */
12
+
13
+namespace vossmedien\AloxBundle\DependencyInjection;
14
+
15
+use Symfony\Component\Config\FileLocator;
16
+use Symfony\Component\DependencyInjection\ContainerBuilder;
17
+use Symfony\Component\DependencyInjection\Extension\Extension;
18
+use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
19
+
20
+class VossmedienAloxExtension extends Extension
21
+{
22
+    public function load(array $configs, ContainerBuilder $container): void
23
+    {
24
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../config'));
25
+        $loader->load('services.yml');
26
+    }
27
+}
0 28
new file mode 100644
... ...
@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/*
6
+ * This file is part of formilicious bundle for Contao.
7
+ *
8
+ * (c) Benjamin Roth
9
+ *
10
+ * @license LGPL-3.0-or-later
11
+ */
12
+
13
+namespace vossmedien\AloxBundle;
14
+
15
+use Symfony\Component\HttpKernel\Bundle\Bundle;
16
+
17
+class VossmedienAloxBundle extends Bundle
18
+{
19
+    public function getPath(): string
20
+    {
21
+        return \dirname(__DIR__);
22
+    }
23
+}