Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/Model/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,14 +478,26 @@ public function getRouteUrls()
* A repository URL, optionally followed by an '@' sign and a branch name,
* e.g. 'git://github.com/platformsh/platformsh-examples.git@drupal/7.x'.
* The default branch is 'master'.
* @param array $files
* A list of base64 encode file strings to create as files
* e.g.
* $files = [
* [
* "contents" => "base64 encoded contents of the file go here",
* "mode" => 493, // I.e. this is 0755 as a decimal integer
* "path" => "composer.json",
* ]
* ]
*
*
* @return Activity
*/
public function initialize($profile, $repository)
public function initialize($profile, $repository, $files)
{
$values = [
'profile' => $profile,
'repository' => $repository,
'files' => $files,
];

return $this->runLongOperation('initialize', 'post', $values);
Expand Down