Skip to content

Commit

Permalink
Changed tags extension from module to bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
hschottm committed May 31, 2022
1 parent 86fe5f3 commit 0c357bb
Show file tree
Hide file tree
Showing 90 changed files with 431 additions and 307 deletions.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
.DS_Store
.DS_Store
.svn
.git/
.settings/
.buildpath
.project
composer.lock
vendor
# Transifex
/.tx/
58 changes: 58 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php

$header = <<<EOF
@copyright Helmut Schottmüller 2009-2022 <http://github.com/hschottm>
@author Helmut Schottmüller (hschottm)
@package contao-tags
@license LGPL-3.0+, CC-BY-NC-3.0
@see https://github.com/hschottm/tags
EOF;

$finder = PhpCsFixer\Finder::create()
->exclude('Resources')
->in([__DIR__.'/src'])
;

return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit60Migration:risky' => true,
'align_multiline_comment' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'compact_nullable_typehint' => true,
'general_phpdoc_annotation_remove' => [
'expectedException',
'expectedExceptionMessage',
],
'header_comment' => ['header' => $header],
'heredoc_to_nowdoc' => true,
'linebreak_after_opening_tag' => true,
'no_null_property_initialization' => true,
'no_superfluous_elseif' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'phpdoc_types_order' => [
'null_adjustment' => 'always_last',
'sort_algorithm' => 'none',
],
'strict_comparison' => true,
'strict_param' => true,
// Remove when https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3222 has been merged
'LeoFeyer/optimize_native_functions' => true,
])
->registerCustomFixers([
new LeoFeyer\PhpCsFixer\OptimizeNativeFunctionsFixer()
])
->setFinder($finder)
->setRiskyAllowed(true)
->setUsingCache(false)
;
7 changes: 0 additions & 7 deletions assets/.htaccess

This file was deleted.

47 changes: 37 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,53 @@
{
"name":"hschottm/tags",
"description":"tags is a Contao extension that provides an architecture to tag any Contao element.",
"keywords":["contao", "module", "extension", "tagcloud", "tags"],
"type":"contao-module",
"license":"LGPL-3.0+",
"description":"tags is a Contao bundle that provides an architecture to tag almost any Contao element.",
"keywords":["contao", "module", "extension", "tagcloud", "tags", "bundle"],
"type":"contao-bundle",
"license":["LGPL-3.0-or-later", "CC-BY-NC-SA-4.0"],
"authors":[
{
"name":"Helmut Schottmüller",
"homepage":"https://github.com/hschottm"
}
],
"require":{
"php":">=5.3",
"php": ">=5.6.0",
"contao/core-bundle": "~4.10",
"patchwork/utf8": "^1.3",
"contao-community-alliance/composer-plugin": "~3.0"
},
"extra":{
"contao": {
"sources":{
"": "system/modules/tags"
}
"require-dev": {
"contao/manager-plugin": "^2.0",
"doctrine/doctrine-cache-bundle": "^1.3",
"friendsofphp/php-cs-fixer": "^2.12",
"php-http/guzzle6-adapter": "^1.1",
"php-http/message-factory": "^1.0.2",
"phpunit/phpunit": "^5.7.26",
"symfony/phpunit-bridge": "^3.2"
},
"conflict": {
"contao/manager-plugin": "<2.0 || >=3.0"
},
"autoload": {
"psr-4": {
"Hschottm\\TagsBundle\\": "src/"
},
"classmap": [
"src/Resources/contao/"
],
"exclude-from-classmap": [
"src/Resources/contao/config/",
"src/Resources/contao/dca/",
"src/Resources/contao/languages/",
"src/Resources/contao/templates/"
]
},
"autoload-dev": {
"psr-4": {
"Hschottm\\TagsBundle\\Tests\\": "tests/"
}
},
"extra":{
"contao-manager-plugin": "Hschottm\\TagsBundle\\ContaoManager\\Plugin"
}
}
7 changes: 0 additions & 7 deletions config/autoload.ini

This file was deleted.

82 changes: 0 additions & 82 deletions config/autoload.php

This file was deleted.

129 changes: 0 additions & 129 deletions config/config.php

This file was deleted.

31 changes: 0 additions & 31 deletions config/runonce.php

This file was deleted.

Loading

0 comments on commit 0c357bb

Please sign in to comment.