Feature #42479
Context dependant Package states
Status:
Closed
Priority:
Won't have this time
Assignee:
Category:
Package
Target version:
-
Start date:
2012-10-29
Due date:
% Done:
0%
Estimated time:
PHP Version:
Has patch:
No
Complexity:
Description
It should be possible to (de)activate packages for certain contexts only.
Suggested PackageStates.php syntax:
return array ( 'packages' => array ( 'Foo.Bar' => array ( 'manifestPath' => '', 'state' => 'inactive', 'packagePath' => 'Application/Foo.Bar/', 'classesPath' => 'Classes/', ), 'Bar.Baz' => array ( 'manifestPath' => '', 'state' => 'active', 'overriddenStateByContext' => array( 'Production' => 'inactive', ), 'packagePath' => 'Application/Bar.Baz/', 'classesPath' => 'Classes/', ), // ...
Related issues
Updated by Bastian Waidelich about 8 years ago
As discussed the PackageStates.php syntax should be rather like:
return array ( 'packages' => array ( 'Foo.Bar' => array ( 'manifestPath' => '', 'state' => array( 'default' => 'inactive', ), 'packagePath' => 'Application/Foo.Bar/', 'classesPath' => 'Classes/', ), 'Bar.Baz' => array ( 'manifestPath' => '', 'state' => array( 'default' => 'inactive', 'Production' => 'active', ), 'packagePath' => 'Application/Bar.Baz/', 'classesPath' => 'Classes/', ), // ...
The package:(de)activate
commands need to be adjusted to accept a context flag:
./flow package:activate Foo.Bar --context Production ./flow package:deactivate Foo.Bar --context Production
Updated by Gerrit Code Review about 8 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16047
Updated by Bastian Waidelich over 7 years ago
- Status changed from New to Closed
- Priority changed from Should have to Won't have this time
- Target version deleted (
2.1)
Too old, too rusty, not important enough(?). Closing this for now