Added Symfony\Yaml, improved installer and Makefile and updated .gitignore

This commit is contained in:
Netkas 2022-08-14 16:48:39 -04:00
parent 61ea95d95c
commit 5667ae25c5
30 changed files with 3514 additions and 637 deletions

View file

@ -1,42 +0,0 @@
[ncc]
; The default data directory that is used by NCC to store packages,
; cache, configuration files and other generated files. This includes
; data stored by packages using the NCC storage API.
data_directory=/var/ncc
[php]
; Configuration section for the PHP configuration that NCC will use to run
; The main executable path for PHP that NCC should use
executable_path=/usr/bin/php
; Enables/Disables the environment configuration feature
; Allowing packages to install environment configurations to NCC
; that can be loaded during runtime using the NCC API
;
; If disabled packages may break if they depend on this feature.
;
; Leaving this enabled while installing and using unknown packages
; without reviewing their source code could lead to potential security
; issues/backdoors, use this feature for containerized environments
enable_environment_configurations=False
; Enables/Disables the injection of NCC's include path
; during the initialization phase allowing you to import
; packages using the `import()` function and other ncc
; API Functions without needing to require NCC's autoloader
;
; This feature is highly recommended to be enabled
enable_include_path=True
[git]
executable_path=/usr/bin/git
[composer]
; When enabled, NCC will use it's builtin version of composer
; to execute composer tasks, if disabled it will fallback to
; the `executable_path` option and attempt to use that specified
; location of composer
enable_internal_composer=True
executable_path=/home/user/composer.phar

41
src/config/ncc.yaml Normal file
View file

@ -0,0 +1,41 @@
ncc:
# The default data directory that is used by NCC to store packages,
# cache, configuration files and other generated files. This includes
# data stored by packages using the NCC storage API.
data_directory: "/var/ncc"
php:
# Configuration section for the PHP configuration that NCC will use to run
# The main executable path for PHP that NCC should use
executable_path: "/usr/bin/php"
# Enables/Disables the environment configuration feature
# Allowing packages to install environment configurations to NCC
# that can be loaded during runtime using the NCC API
#
# If disabled packages may break if they depend on this feature.
#
# Leaving this enabled while installing and using unknown packages
# without reviewing their source code could lead to potential security
# issues/backdoors, use this feature for containerized environments
enable_environment_configurations: false
# Enables/Disables the injection of NCC's include path
# during the initialization phase allowing you to import
# packages using the `import()` function and other ncc
# API Functions without needing to require NCC's autoloader
#
# This feature is highly recommended to be enabled
enable_include_path: true
git:
executable_path: "/usr/bin/git"
composer:
# When enabled, NCC will use it's builtin version of composer
# to execute composer tasks, if disabled it will fallback to
# the `executable_path` option and attempt to use that specified
# location of composer
enable_internal_composer: true
executable_path: "/home/user/composer.phar"