Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"assetic/framework": "^2.0 || ^3.0" #231

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 0 additions & 7 deletions Module.php

This file was deleted.

46 changes: 25 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,45 @@
{
"name": "rwoverdijk/assetmanager",
"description": "An assetmanager module for Laminas.",
"name": "dcs/assetmanager",
"description": "An asset manager module for Laminas.",
"license": "BSD-2-Clause",
"type": "library",
"keywords": [
"asset",
"asset manager",
"laminas"
],
"homepage": "https://github.com/RWOverdijk/AssetManager",
"homepage": "https://github.com/10n/AssetManager.git",
"authors": [
{
"name": "Wesley Overdijk",
"email": "r.w.overdijk@gmail.com",
"homepage": "http://blog.spoonx.nl/"
"homepage": "https://blog.spoonx.nl/"
},
{
"name": "Marco Pivetta",
"email": "ocramius@gmail.com",
"homepage": "http://ocramius.github.com/"
"homepage": "https://ocramius.github.com/"
}
],
"replace": {
"rwoverdijk/assetmanager": "self.version"
},
"require": {
"php": "^7.3 || ^8.0",
"laminas/laminas-modulemanager": "^2.7.2",
"php": "^8.1|^8.2|^8.3",
"ext-mbstring": "*",
"laminas/laminas-diactoros": "^3.5",
"laminas/laminas-stdlib": "^3.2.1",
"laminas/laminas-servicemanager": "^2.7.6 || ^3.1.1",
"laminas/laminas-loader": "^2.5.1",
"laminas/laminas-eventmanager": "^2.6.3 || ^3.0.1",
"laminas/laminas-mvc": "^2.7.9 || ^3.0.2",
"assetic/framework": "^2.0",
"laminas/laminas-dependency-plugin": "^2.0"
"laminas/laminas-servicemanager": "^3.1.1",
"assetic/framework": "^3.0",
"psr/container": "^1.1|^2.0",
"psr/http-message": "^1.1|^2.0"
},
"require-dev": {
"laminas/laminas-http": "^2.5.4",
"laminas/laminas-view": "^2.8.1",
"laminas/laminas-cache": "^2.7.1",
"laminas/laminas-console": "^2.6",
"laminas/laminas-cache": "^3.0",
"laminas/laminas-cache-storage-adapter-blackhole": "^2.0",
"laminas/laminas-cache-storage-adapter-memory": "^2.0",
"squizlabs/php_codesniffer": "^3.5.6",
"phpunit/phpunit": "^8.5.8 || ^9.1"
},
"suggest": {
"laminas/laminas-mvc-console": "laminas-mvc-console provides the ability to expose laminas-mvc as a console application"
"phpunit/phpunit": "^9.1"
},
"autoload": {
"psr-0": {
Expand All @@ -52,5 +50,11 @@
"psr-0": {
"AssetManagerTest": "tests"
}
},

"config": {
"platform": {
"php": "8.1.99"
}
}
}
69 changes: 0 additions & 69 deletions config/module.config.php

This file was deleted.

47 changes: 47 additions & 0 deletions src/AssetManager/ConfigProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

namespace AssetManager;

class ConfigProvider
{
public function __invoke(): array
{
/**
* @noinspection PhpFullyQualifiedNameUsageInspection
*/
return [
'dependencies' => [
'factories' => [
\AssetManager\Service\AssetManager::class => \AssetManager\Service\AssetManagerServiceFactory::class,
\AssetManager\Service\AssetFilterManager::class => \AssetManager\Service\AssetFilterManagerServiceFactory::class,
\AssetManager\Service\AssetCacheManager::class => \AssetManager\Service\AssetCacheManagerServiceFactory::class,
\AssetManager\Resolver\AggregateResolver::class => \AssetManager\Service\AggregateResolverServiceFactory::class,
\AssetManager\Resolver\MapResolver::class => \AssetManager\Service\MapResolverServiceFactory::class,
\AssetManager\Resolver\PathStackResolver::class => \AssetManager\Service\PathStackResolverServiceFactory::class,
\AssetManager\Resolver\PrioritizedPathsResolver::class => \AssetManager\Service\PrioritizedPathsResolverServiceFactory::class,
\AssetManager\Resolver\CollectionResolver::class => \AssetManager\Service\CollectionResolverServiceFactory::class,
\AssetManager\Resolver\ConcatResolver::class => \AssetManager\Service\ConcatResolverServiceFactory::class,
\AssetManager\Resolver\AliasPathStackResolver::class => \AssetManager\Service\AliasPathStackResolverServiceFactory::class,
\AssetManager\Service\MimeResolver::class => \Laminas\ServiceManager\Factory\InvokableFactory::class,
],
],
'asset_manager' => [
'clear_output_buffer' => true,
'resolvers' => [
\AssetManager\Resolver\MapResolver::class => 3000,
\AssetManager\Resolver\ConcatResolver::class => 2500,
\AssetManager\Resolver\CollectionResolver::class => 2000,
\AssetManager\Resolver\PrioritizedPathsResolver::class => 1500,
\AssetManager\Resolver\AliasPathStackResolver::class => 1000,
\AssetManager\Resolver\PathStackResolver::class => 500,
],
'view_helper' => [
'append_timestamp' => true,
'query_string' => '_',
'cache' => null,
],
],
];
}

}
154 changes: 0 additions & 154 deletions src/AssetManager/Controller/ConsoleController.php

This file was deleted.

35 changes: 0 additions & 35 deletions src/AssetManager/Controller/ConsoleControllerFactory.php

This file was deleted.

Loading