Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
876790b
Added an interface as a guide for the new package methods.
zinigor May 9, 2019
4a6db30
Add package structure
oskosk May 14, 2019
f13489f
Initialized the composer library, added gitignore.
zinigor May 14, 2019
d2e74b1
Removed phpunit from connection dependencies.
zinigor May 14, 2019
9d116c8
Added first real code to the connection manager class, as well as tes…
zinigor May 16, 2019
3a9d745
Renamed the test folder to tests.
zinigor May 17, 2019
acf4c69
Made the option name be a class constant.
zinigor May 17, 2019
67c976e
Added 10up's WP_Mock as a dependency, refactored the injection to use…
zinigor May 17, 2019
b986e3a
Changed the internal method accessibility to protected.
zinigor May 21, 2019
54b594e
Initialized an empty package repo for the options manager.
zinigor May 21, 2019
a04464e
Added the options package as a dependency to the master repo.
zinigor May 21, 2019
48cfad0
Added a package structure placeholder for the options manager.
zinigor May 21, 2019
cb68722
Added the first test for the delete option method.
zinigor May 21, 2019
5a2f771
Added the update method and a test for it.
zinigor May 22, 2019
174d545
Added a test for the grouped option deletion.
zinigor May 22, 2019
e06b5da
Added the group updater method and a test for it.
zinigor May 22, 2019
471113d
Added the grouped option getter and a test for it.
zinigor May 22, 2019
e48ecab
Added a test for the noncompact option getter.
zinigor May 22, 2019
45fd847
Added tests for network option manipulation.
zinigor May 24, 2019
b1dbef3
Removed autoloader requirement in favour of the existing one.
zinigor May 27, 2019
358c2fb
Added the connection manager secret generator to actual Jetpack class.
zinigor May 29, 2019
ab347da
Removed individual gitignore files in favor of a parent-level file, p…
zinigor May 29, 2019
18c3261
Moved packages source code into src folders.
zinigor May 29, 2019
3925714
Removed the V7 part of the namespace.
zinigor May 30, 2019
12ae781
Remove v7 from namespace in the Manager Interface
roccotripaldi May 30, 2019
17aa99a
Remove V7 from namespaces
gravityrail May 30, 2019
b1066c9
Add Automattic to the namespace
gravityrail May 30, 2019
1288f29
Rename jetpack-[name] packages to [name]
gravityrail May 30, 2019
09a0774
Update composer lock
gravityrail May 30, 2019
afa5096
Adding a package for Jetpack Constants
roccotripaldi May 30, 2019
57ea581
Attempting to fix WPCOM tests.
zinigor May 31, 2019
5e2c656
Excluding packages folder from linting for PHP 5.6 and earlier.
zinigor May 31, 2019
1b9bb2a
adjust syntax in connection tests
roccotripaldi Jun 3, 2019
98ba081
removing new unit tests. i'm not sure why they are failing. we can re…
roccotripaldi Jun 3, 2019
56aedcc
reverting last commit, and fixing tests in `packages/options`
roccotripaldi Jun 3, 2019
5be105f
ah, one more
roccotripaldi Jun 3, 2019
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
Prev Previous commit
Next Next commit
Add Automattic to the namespace
  • Loading branch information
gravityrail authored and roccotripaldi committed May 31, 2019
commit b1066c9ea890ac6e34a872b389b657e12046fe36
2 changes: 1 addition & 1 deletion class.jetpack-options.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use \Jetpack\Options\Manager as Options_Manager;
use \Automattic\Jetpack\Options\Manager as Options_Manager;

/**
* The option manager class that will eventually replace Jetpack_Options
Expand Down
4 changes: 2 additions & 2 deletions class.jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
Flag for "activating" the plugin on sites where the activation hook never fired (auto-installs)
*/

use \Jetpack\Connection\Manager as Connection_Manager;
use \Automattic\Jetpack\Connection\Manager as Connection_Manager;

require_once( JETPACK__PLUGIN_DIR . '_inc/lib/class.media.php' );

Expand Down Expand Up @@ -335,7 +335,7 @@ class Jetpack {
public $json_api_authorization_request = array();

/**
* @var \Jetpack\Connection\Manager
* @var \Automattic\Jetpack\Connection\Manager
*/
protected $connection_manager;

Expand Down
8 changes: 4 additions & 4 deletions composer.lock

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

2 changes: 1 addition & 1 deletion packages/jetpack-connection/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"autoload": {
"psr-4": {
"Jetpack\\Connection\\": "src"
"Automattic\\Jetpack\\Connection\\": "src"
}
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions packages/jetpack-connection/src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @package jetpack-connection
*/

namespace Jetpack\Connection;
namespace Automattic\Jetpack\Connection;

use Jetpack\Connection\Manager_Interface;
use Automattic\Jetpack\Connection\Manager_Interface;

/**
* The Jetpack Connection Manager class that is used as a single gateway between WordPress.com
Expand All @@ -22,7 +22,7 @@ class Manager implements Manager_Interface {
/**
* The object for managing options.
*
* @var \Jetpack\Options\Manager
* @var \Automattic\Jetpack\Options\Manager
*/
protected $option_manager;

Expand Down
2 changes: 1 addition & 1 deletion packages/jetpack-connection/src/Manager_Interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package jetpack-connection
*/

namespace Jetpack\Connection;
namespace Automattic\Jetpack\Connection;

/**
* The Connection interface class file.
Expand Down
4 changes: 2 additions & 2 deletions packages/jetpack-connection/tests/Manager.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use WP_Mock\Tools\TestCase;
use Jetpack\Connection\Manager;
use Automattic\Jetpack\Connection\Manager;

class ManagerTest extends TestCase {
public function setUp(): void {
Expand Down Expand Up @@ -32,7 +32,7 @@ public function tearDown(): void {

function test_class_implements_interface() {
$manager = new Manager();
$this->assertInstanceOf( 'Jetpack\Connection\Manager_Interface', $manager );
$this->assertInstanceOf( 'Automattic\Jetpack\Connection\Manager_Interface', $manager );
}

function test_generate_secrets() {
Expand Down
2 changes: 1 addition & 1 deletion packages/jetpack-options/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"autoload": {
"psr-4": {
"Jetpack\\Options\\": "src"
"Automattic\\Jetpack\\Options\\": "src"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jetpack-options/src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package jetpack-options
*/

namespace Jetpack\Options;
namespace Automattic\Jetpack\Options;

/**
* The Jetpack Options Manager class that is used as a single gateway between WordPress options API
Expand Down
2 changes: 1 addition & 1 deletion packages/jetpack-options/tests/Manager.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use WP_Mock\Tools\TestCase;
use Jetpack\Options\Manager;
use Auutomattic\Jetpack\Options\Manager;

class ManagerTest extends TestCase {
public function setUp(): void {
Expand Down