Skip to content

Commit fd5d944

Browse files
committed
document installer flow in doc/InstallerFlow.md
1 parent 451c9a7 commit fd5d944

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

doc/InstallerFlow.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Installer Flow
2+
===============
3+
4+
1. read the package.ini from current directory.
5+
6+
see Onion\Command\InstallCommand
7+
8+
and use PackageConfigReader to read config file:
9+
10+
$reader = new \Onion\PackageConfigReader;
11+
12+
13+
2. create a dependency resolver object
14+
15+
pass the package meta information to dependency resolver
16+
and resolve all package dependencies.
17+
18+
the package dependencies are stored in a dependency pool of dependency resolver.
19+
20+
3. create an installer, iterating all dependencies and use specific installer for each package.
21+
22+
For PEAR packages, use PEARInstaller
23+
For Library files, use LibraryInstaller (not support yet)
24+

src/Onion/Installer/PearInstaller.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414

1515
// xxx: use logger to parse
1616

17+
18+
19+
/**
20+
*
21+
*
22+
*
23+
*/
1724
class PearInstaller
1825
implements InstallerInterface
1926
{
@@ -28,7 +35,6 @@ function __construct($main)
2835
function install( $package )
2936
{
3037
$logger = \Onion\Application::getLogger();
31-
3238
$logger->info( "Installing {$package->name}" );
3339

3440
// create temp dir

0 commit comments

Comments
 (0)