-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update and extend the installation description for components #12
Comments
DraftThis is a first draft for the new installation page. Comments and help are welcome! InstallationStandard InstallationTo install the library use Composer: $ composer require zendframework/zend-inputfilter Installation for zend-expressive and zend-mvc ApplicationInstallation and Automated ConfigurationThe zend-component-installer is the recommended installation method when using in a zend-expressive-based or a zend-mvc-based application. It will automatically inject the config-provider or the module in the configuration during the installation process.
Install zend-inputfilter and Inject ConfigurationTo install the library use Composer: $ composer require zendframework/zend-inputfilter This will install an initial set of dependencies, including zend-filter. It will also prompt to inject the component configuration.
If additional dependencies are to be installed, the option for other packages can be remembered. Installation and Manual ConfigurationIf the installer is not used, the manual configuration is needed to add the component to the application. Install zend-inputfilterTo install the library, use Composer: $ composer require zendframework/zend-inputfilter Configuration for a zend-expressive-based ApplicationAdd the configuration provider of zend-inputfilter to the configuration file, e.g. $aggregator = new Zend\ConfigAggregator\ConfigAggregator([
// …
Zend\Expressive\ConfigProvider::class,
Zend\Expressive\Router\ConfigProvider::class,
Zend\InputFilter\ConfigProvider::class, // <-- Add this line
// …
]); Configuration for a zend-mvc-based ApplicationAdd zend-inputfilter as module to the configuration file for modules, e.g. return [
'Zend\InputFilter', // <-- Add this line
'Zend\Router',
'Zend\Session',
'Zend\Validator',
'Application',
]; |
@froschdesign It looks great. I was missing this part, and current home/installation page in the documentation could be confusing, as we are not saying any single word that the module must be enabled... Today I have found that you don't need to have installed
this is specific for package, how we are gonna do it for all packages? Also adding something at the top of module list or the bottom is not that obvious. I guess it doesn't matter too much for ConfgProviders but there is a difference for modules - we have there two types - "Components" (added at the top of module list) and "Modules" (added at the bottom of the module list). It is also described in zend-component-installer documentation. So manual installation is not that trivial. |
@webimpress
That's exactly what the goal should be! I will update the draft and will test it with documentation template. |
Currently we have no ZF components which can be installed as a module. |
@froschdesign - Almost any non-expressive component that has a
ConfigProvider also has a Module class - I know for certain that form,
filter, validator, and mvc-i18n have them.
…On Sun, Oct 27, 2019, 4:31 AM Frank Brückner ***@***.***> wrote:
@webimpress <https://github.com/webimpress>
Also adding something at the top of module list or the bottom is not that
obvious.
…
So manual installation is not that trivial.
Currently we have no ZF components which can be installed as a module.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGKVYAWSKD6JBUKW5X3B3QQVGX3ANCNFSM4HPJ6PMA>
.
|
Right, but these module classes are installed as "component": "zf": {
"component": "Zend\\Filter",
"config-provider": "Zend\\Filter\\ConfigProvider"
}
There are no module classes which are installed as "module": "extra": {
"zf": {
"module": "Some\\Component"
}
} |
I have tested the some options within the template. For example ( extra:
installation:
config_provider_class: 'Zend\InputFilter\ConfigProvider'
module_class: 'Zend\InputFilter'
In this way, the content of the installation description can be controlled. But this also means we must move the entire content of the installation to theme and template.
|
See: laminas/documentation#12 Signed-off-by: Frank Brückner <[email protected]>
Problem
Most of the installation descriptions in the components contain only the Composer command, and further steps such as registering are missing. Also the usage with zend-component-installer.
Suggestion
Create a new installation page that contains:
The text was updated successfully, but these errors were encountered: