mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 12:37:46 +02:00
feat: add npm for js dependencies + move src/ files to root folder
- add node service in docker-compose.yml - update .devcontainer Dockerfile by adding node, npm and vim - init package.json for npm with tailwindcss, postcss, commitlint and commitizen as dev dependencies - update default layout main header and footer - replace CI's welcome_message.php with home.php listing all podcasts - add AUTHORS.md file - add docs folder in which to place castopod's technical documentation
This commit is contained in:
parent
3bf9420b59
commit
cbb83a6f30
129 changed files with 94753 additions and 1551 deletions
67
app/Config/Modules.php
Normal file
67
app/Config/Modules.php
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
<?php namespace Config;
|
||||
|
||||
// Cannot extend BaseConfig or looping resources occurs.
|
||||
class Modules
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto-Discovery Enabled?
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If true, then auto-discovery will happen across all elements listed in
|
||||
| $activeExplorers below. If false, no auto-discovery will happen at all,
|
||||
| giving a slight performance boost.
|
||||
*/
|
||||
public $enabled = true;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto-Discovery Within Composer Packages Enabled?
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If true, then auto-discovery will happen across all namespaces loaded
|
||||
| by Composer, as well as the namespaces configured locally.
|
||||
*/
|
||||
public $discoverInComposer = true;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto-discover Rules
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Lists the aliases of all discovery classes that will be active
|
||||
| and used during the current application request. If it is not
|
||||
| listed here, only the base application elements will be used.
|
||||
*/
|
||||
public $activeExplorers = [
|
||||
'events',
|
||||
'registrars',
|
||||
'routes',
|
||||
'services',
|
||||
];
|
||||
|
||||
/**
|
||||
* Should the application auto-discover the requested resources.
|
||||
*
|
||||
* Valid values are:
|
||||
* - events
|
||||
* - registrars
|
||||
* - routes
|
||||
* - services
|
||||
*
|
||||
* @param string $alias
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function shouldDiscover(string $alias)
|
||||
{
|
||||
if (! $this->enabled)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$alias = strtolower($alias);
|
||||
|
||||
return in_array($alias, $this->activeExplorers);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue