Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Commit

Permalink
upgrade to latest stubbles/core
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey179 committed Aug 15, 2014
1 parent 7a5de9f commit eeb68b8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 35 deletions.
20 changes: 7 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions src/main/php/creator/ConsoleAppCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ class ConsoleAppCreator extends ConsoleApp
*/
private $testFile;

/**
* returns list of bindings used for this application
*
* @param string $projectPath
* @return \stubbles\ioc\module\BindingModule[]
*/
public static function __bindings($projectPath)
{
return [self::createModeBindingModule($projectPath)
];
}

/**
* constructor
*
Expand Down
5 changes: 1 addition & 4 deletions src/main/resources/creator/class.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ class {CLASS} extends ConsoleApp
*/
public static function __bindings($projectPath)
{
return [self::createModeBindingModule($projectPath),
self::createArgumentsBindingModule(),
self::createConsoleBindingModule()
];
return [self::bindArguments()];
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/test/helper/SelfBoundConsoleApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ class SelfBoundConsoleApp extends ConsoleApp
*/
public static function __bindings($projectPath)
{
return [self::createModeBindingModule($projectPath),
self::createArgumentsBindingModule()
return [self::bindArguments()
->withUserInput(__CLASS__)
];
}
Expand Down
5 changes: 1 addition & 4 deletions src/test/php/creator/ClassFileCreatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ class ExampleConsoleApp extends ConsoleApp
*/
public static function __bindings($projectPath)
{
return [self::createModeBindingModule($projectPath),
self::createArgumentsBindingModule(),
self::createConsoleBindingModule()
];
return [self::bindArguments()];
}
/**
Expand Down

0 comments on commit eeb68b8

Please sign in to comment.